Skip to content

Commit f2dca3b

Browse files
committed
make sure github token is always set for mergepal
1 parent 4a34693 commit f2dca3b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/continous-integration.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,14 @@ jobs:
268268
needs: [quality, test, api, docker]
269269
steps:
270270
- uses: actions/checkout@v1
271+
- name: Make sure there is a github token
272+
shell: bash
273+
run: |
274+
if [ -z "${{ secrets.RASABOT_AUTOMERGE_GITHUB_TOKEN }}" ]; then
275+
echo ::set-env name=MERGE_TOKEN::${{ secrets.GITHUB_TOKEN }}
276+
else
277+
echo ::set-env name=MERGE_TOKEN::${{ secrets.RASABOT_AUTOMERGE_GITHUB_TOKEN }}
278+
fi
271279
- uses: rasahq/merge-pal-action@master
272280
with:
273-
token: ${{ secrets.RASABOT_AUTOMERGE_GITHUB_TOKEN }}
281+
token: ${{ env.MERGE_TOKEN }}

0 commit comments

Comments
 (0)