Feature/improve gh actions #9
Workflow file for this run
This file contains hidden or 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: Branch Validation | |
| on: | |
| pull_request: | |
| branches: [ '*' ] | |
| jobs: | |
| validate-branch: | |
| runs-on: ubuntu-latest | |
| name: Validate Branch Names and Merge Rules and assure branch has changes from main | |
| env: | |
| SOURCE_BRANCH: ${{ github.head_ref }} | |
| TARGET_BRANCH: ${{ github.base_ref }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Validate current branch | |
| run: automate/git/branch_validator.py |