Make sure we never lower the job next run (when rate limit is reached) #104
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: Main Branch Protection | |
#on: | |
# pull_request: | |
# branches: | |
# - main | |
#jobs: | |
# check-branch: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Check branch | |
# run: | | |
# if [[ ${GITHUB_HEAD_REF} != development ]] && [[ ${GITHUB_HEAD_REF} != documentation ]] && ! [[ ${GITHUB_HEAD_REF} =~ ^hotfix/ ]]; | |
# then | |
# echo "Error: Pull request must come from 'development', 'documentation' or 'hotfix/' branch" | |
# exit 1 | |
# fi |