Skip to content

chore: Advanced Example (Custom Workflow using ImpReader class) #1

chore: Advanced Example (Custom Workflow using ImpReader class)

chore: Advanced Example (Custom Workflow using ImpReader class) #1

name: Main - 🧐 Check PR Source Branch
on:
pull_request_target:
branches:
- main
types:
- opened
- synchronize
- reopened
jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Display Source Branch
run: |
echo "Pull request is coming from branch: ${{ github.head_ref }}"
- name: Fail if source branch is not allowed
if: ${{ github.head_ref != 'dev' }}
run: |
echo "Error: Pull requests are only allowed from the 'dev' branch."
exit 1