Skip to content

Commit

Permalink
Update check_target_on_pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
suppamax authored Dec 22, 2023
1 parent 9eee13d commit fc09f33
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/check_target_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ jobs:
check_target:
runs-on: ubuntu-latest
steps:
- if: ${{ (github.event.pull_request.head.ref == 'dev' && github.event.pull_request.base.ref == 'master') || github.event.pull_request.base.ref == 'dev' }}
- if: ${{ (github.event.pull_request.head.ref == 'dev' && github.event.pull_request.base.ref == 'master') || github.event.pull_request.base.ref == 'dev' || github.event.push.ref != 'refs/heads/master'}}
run: exit 0
- if: ${{ github.event.pull_request.base.ref != 'dev' }}
- if: ${{ github.event.pull_request.base.ref != 'dev' || github.event.push.ref == 'refs/heads/master'}}
run: exit 1
- if: ${{ github.event.push.ref == 'refs/heads/master' }}
run: exit 1
- if: ${{ github.event.push.ref != 'refs/heads/master' }}
run: exit 0

0 comments on commit fc09f33

Please sign in to comment.