Skip to content

Commit 464f689

Browse files
authored
Update upload-catalog.sh
1 parent f3b46b6 commit 464f689

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/upload-catalog.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
set -eux
33

44
# clone an additional repository
5-
cd ${{ GITHUB_ACTION_PATH }}
6-
git clone --branch ${{ CATALOG_BRANCH }} https://github.com/python-doc-ja/cpython-doc-catalog.git cpython-doc-catalog
7-
mkdir -p ${{ GITHUB_ACTION_PATH }}/cpython-doc-catalog/Doc/locales/ja
8-
cd ${{ GITHUB_ACTION_PATH }}/cpython-doc-catalog/Doc/locales/ja
9-
ln -s ${{ GITHUB_ACTION_PATH }}/python-docs-ja LC_MESSAGES
5+
cd ${GITHUB_ACTION_PATH}
6+
git clone --branch ${env.CATALOG_BRANCH} https://github.com/python-doc-ja/cpython-doc-catalog.git cpython-doc-catalog
7+
mkdir -p ${GITHUB_ACTION_PATH}/cpython-doc-catalog/Doc/locales/ja
8+
cd ${GITHUB_ACTION_PATH}/cpython-doc-catalog/Doc/locales/ja
9+
ln -s ${GITHUB_ACTION_PATH}/python-docs-ja LC_MESSAGES
1010
ls -lF LC_MESSAGES
1111

1212
# upload catalogs to python-docs-ja
13-
cd ${{ GITHUB_ACTION_PATH }}/cpython-doc-catalog/Doc/locales
13+
cd ${GITHUB_ACTION_PATH}/cpython-doc-catalog/Doc/locales
1414
if [ ! -e .tx/config ]; then
1515
echo ".tx/config does not exist. Skip uploading catalogs to python-docs-ja"
1616
exit 0
@@ -25,6 +25,6 @@ if [[ $(git status --short | wc -l) == 0 ]]; then
2525
else
2626
echo "I have .po file(s) to upload"
2727
git commit --message="[skip ci] Update .po files"
28-
git push --quiet "git@python-docs-ja.github.com:python/python-docs-ja.git" ${{ DOCS_BRANCH }}:${{ DOCS_BRANCH }}
28+
git push --quiet "git@python-docs-ja.github.com:python/python-docs-ja.git" ${env.DOCS_BRANCH}:${env.DOCS_BRANCH}
2929
fi
30-
rm -rf ${{ GITHUB_ACTION_PATH }}/cpython-doc-catalog/Doc/locales/ja
30+
rm -rf ${GITHUB_ACTION_PATH}/cpython-doc-catalog/Doc/locales/ja

0 commit comments

Comments
 (0)