ops-engine v2.1.2 #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 Release Naming Convention | |
| on: | |
| release: | |
| types: [published, edited] | |
| jobs: | |
| check-naming-convention: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check release name pattern | |
| env: | |
| RELEASE_NAME: ${{ github.event.release.name }} | |
| run: | | |
| echo "Checking release name: $RELEASE_NAME" | |
| # Regular expression to match "Ops Engine vX.Y.Z" | |
| if [[ ! "$RELEASE_NAME" =~ ^Ops\ Engine\ v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then | |
| echo "::error::Release name '$RELEASE_NAME' does not match the required convention 'Ops Engine vX.Y.Z'" | |
| exit 1 | |
| fi | |
| echo "Release name matches convention." |