Repository navigation
delete renv folder #4
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: Enforce Handbook Naming Conventions | |
| on: | |
| create: | |
| pull_request: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| jobs: | |
| check-repo-name-conventions: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check repository name | |
| run: | | |
| REPO_NAME=${GITHUB_REPOSITORY##*/} | |
| if [[ ! "$REPO_NAME" =~ ^([A-Z][A-Za-z0-9]*)(-[A-Z0-9][A-Za-z0-9]*)*$ ]]; then | |
| echo "Repository name '$REPO_NAME' does not follow the naming convention established in the RSE Agile Method Handbook." | |
| exit 1 | |
| fi | |
| check-branch-name-conventions: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Check branch name | |
| run: | | |
| if [[ ! "$GITHUB_HEAD_REF" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]]; then | |
| echo "Branch name '$GITHUB_HEAD_REF' does not follow the naming convention established in the RSE Agile Method Handbook." | |
| exit 1 | |
| fi |