Merge pull request #994 from YoannPruvost/dev_formal #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check_target | |
on: [push, pull_request] | |
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' || github.event.push.ref != 'refs/heads/master'}} | |
run: exit 0 | |
- if: ${{ github.event.pull_request.base.ref != 'dev' || github.event.push.ref == 'refs/heads/master'}} | |
run: exit 1 |