SY-1365 protect main branch but allow auto pushes from workflows (#911) #1054
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 Versions | |
on: | |
pull_request: | |
branches: | |
- rc | |
- main | |
push: | |
branches: | |
- rc | |
- main | |
workflow_dispatch: | |
jobs: | |
check-versions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Navigate to scripts directory | |
run: cd ./scripts | |
- name: Grant execute permissions for check_version.sh | |
run: chmod +x check_version.sh | |
working-directory: ./scripts | |
- name: Run version check script | |
run: ./check_version.sh | |
working-directory: ./scripts | |