File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ download_translations() {
7777}
7878
7979create_pull_request () {
80- [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GITHUB_APP_TOKEN } " ] && {
81- echo " ERROR: Either 'GITHUB_TOKEN' or 'GITHUB_APP_TOKEN ' must be set in the environment variables!"
80+ [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GH_TOKEN } " ] && {
81+ echo " ERROR: Either 'GITHUB_TOKEN' or 'GH_TOKEN ' must be set in the environment variables!"
8282 exit 1
8383 }
8484
8585 AUTH_TOKEN=" ${GITHUB_TOKEN} "
86- if [ -n " ${GITHUB_APP_TOKEN } " ]; then
87- AUTH_TOKEN=" ${GITHUB_APP_TOKEN } "
86+ if [ -n " ${GH_TOKEN } " ]; then
87+ AUTH_TOKEN=" ${GH_TOKEN } "
8888 fi
8989
9090 AUTH_HEADER=" Authorization: token ${AUTH_TOKEN} "
@@ -239,14 +239,14 @@ create_pull_request() {
239239}
240240
241241push_to_branch () {
242- [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GITHUB_APP_TOKEN } " ] && {
243- echo " ERROR: Either 'GITHUB_TOKEN' or 'GITHUB_APP_TOKEN ' must be set in the environment variables!"
242+ [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GH_TOKEN } " ] && {
243+ echo " ERROR: Either 'GITHUB_TOKEN' or 'GH_TOKEN ' must be set in the environment variables!"
244244 exit 1
245245 }
246246
247247 AUTH_TOKEN=" ${GITHUB_TOKEN} "
248- if [ -n " ${GITHUB_APP_TOKEN } " ]; then
249- AUTH_TOKEN=" ${GITHUB_APP_TOKEN } "
248+ if [ -n " ${GH_TOKEN } " ]; then
249+ AUTH_TOKEN=" ${GH_TOKEN } "
250250 fi
251251
252252 BRANCH=${INPUT_LOCALIZATION_BRANCH_NAME}
You can’t perform that action at this time.
0 commit comments