Run tagpr on main branch #13
Workflow file for this run
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: 🥽 Pull Request Check | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
jobs: | |
Labeler: | |
permissions: | |
contents: read | |
pull-requests: write | |
runs-on: Ubuntu-Latest | |
steps: | |
- name: 🏷️ Add Labels to the Pull Request | |
uses: actions/labeler@v5 | |
Branch-Check: | |
runs-on: Ubuntu-Latest | |
steps: | |
- name: 🚫 Base Branch is wrong | |
if: ${{ github.base_ref == 'main' && github.head_ref != 'dev' }} | |
run: echo "Base branch should be \`dev\`." && exit 1 |