@@ -200,13 +200,13 @@ jobs:
200
200
run : docker build . --file ${{ matrix.image.file }} --tag rasa/rasa:latest${{ matrix.image.tag_ext }} --cache-from rasa/rasa:latest${{ matrix.image.tag_ext }}
201
201
202
202
- name : Push image with latest tag 📦
203
- if : github.event_name == 'push' && github.ref == 'refs/heads/master'
203
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'RasaHQ/rasa'
204
204
run : docker push rasa/rasa:latest${{ matrix.image.tag_ext }}
205
205
206
206
- name : Push image with ${{github.ref}} tag 📦
207
207
env :
208
208
GITHUB_TAG : ${{ github.ref }}
209
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
209
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository == 'RasaHQ/rasa'
210
210
run : |
211
211
GITHUB_TAG=${GITHUB_TAG/refs\/tags\//}
212
212
docker tag rasa/rasa:latest${{ matrix.image.tag_ext }} rasa/rasa:${GITHUB_TAG}${{ matrix.image.tag_ext }}
@@ -217,7 +217,7 @@ jobs:
217
217
runs-on : ubuntu-latest
218
218
219
219
# deploy will only be run when there is a tag available
220
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
220
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.repository == 'RasaHQ/rasa'
221
221
needs : [quality, test, api, docker] # only run after all other stages succeeded
222
222
223
223
steps :
@@ -268,6 +268,14 @@ jobs:
268
268
needs : [quality, test, api, docker]
269
269
steps :
270
270
- uses : actions/checkout@v1
271
-
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
279
+ - uses : rasahq/merge-pal-action@master
272
280
with :
273
- token : ${{ secrets.RASABOT_AUTOMERGE_GITHUB_TOKEN }}
281
+ token : ${{ env.MERGE_TOKEN }}
0 commit comments