test: ignore branchs outside of master (#27929)

This commit is contained in:
骗你是小猫咪 2020-11-27 16:46:24 +08:00 committed by GitHub
parent 0c8a2eb4ae
commit cb936b1d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,8 @@ jobs:
run: npm run test-image
- name: argos-ci
if: github.event_name == 'pull_request_target'
# argos-ci only support base branch, so we should expect master
if: github.event_name == 'pull_request_target' && github.base_ref == 'master'
run: npm run argos -- --token ${{ secrets.ARGOS_TOKEN }} --branch pull/${{ github.event.pull_request.number }}/merge --commit ${{ github.event.pull_request.head.sha }}
- name: argos-ci