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 @@ -79,14 +79,14 @@ download_translations() {
7979}
8080
8181create_pull_request () {
82- [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GITHUB_APP_TOKEN } " ] && {
83- echo " ERROR: Either 'GITHUB_TOKEN' or 'GITHUB_APP_TOKEN ' must be set in the environment variables!"
82+ [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GH_TOKEN } " ] && {
83+ echo " ERROR: Either 'GITHUB_TOKEN' or 'GH_TOKEN ' must be set in the environment variables!"
8484 exit 1
8585 }
8686
8787 AUTH_TOKEN=" ${GITHUB_TOKEN} "
88- if [ -n " ${GITHUB_APP_TOKEN } " ]; then
89- AUTH_TOKEN=" ${GITHUB_APP_TOKEN } "
88+ if [ -n " ${GH_TOKEN } " ]; then
89+ AUTH_TOKEN=" ${GH_TOKEN } "
9090 fi
9191
9292 AUTH_HEADER=" Authorization: token ${AUTH_TOKEN} "
@@ -243,14 +243,14 @@ create_pull_request() {
243243}
244244
245245push_to_branch () {
246- [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GITHUB_APP_TOKEN } " ] && {
247- echo " ERROR: Either 'GITHUB_TOKEN' or 'GITHUB_APP_TOKEN ' must be set in the environment variables!"
246+ [ -z " ${GITHUB_TOKEN} " ] && [ -z " ${GH_TOKEN } " ] && {
247+ echo " ERROR: Either 'GITHUB_TOKEN' or 'GH_TOKEN ' must be set in the environment variables!"
248248 exit 1
249249 }
250250
251251 AUTH_TOKEN=" ${GITHUB_TOKEN} "
252- if [ -n " ${GITHUB_APP_TOKEN } " ]; then
253- AUTH_TOKEN=" ${GITHUB_APP_TOKEN } "
252+ if [ -n " ${GH_TOKEN } " ]; then
253+ AUTH_TOKEN=" ${GH_TOKEN } "
254254 fi
255255
256256 BRANCH=${INPUT_LOCALIZATION_BRANCH_NAME}
You can’t perform that action at this time.
0 commit comments