Development #25
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 source branch for pull request" | |
on: | |
pull_request: | |
branches: | |
- id | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Check source branch is development-id" | |
run: | | |
echo "Source branch is ${{ github.event.pull_request.head.ref }}" | |
if [[ ${{ github.event.pull_request.head.ref }} != "development-id" ]]; then | |
echo "Source branch is not development-id" | |
exit 1 | |
fi |