Skip to content

Commit

Permalink
ci: validate release tag name (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
abuchanan-airbyte authored Sep 5, 2024
1 parent ef18bb0 commit 9f66327
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
name: Build and publish release
runs-on: ubuntu-latest
steps:
- name: Validate tag
run: |
if [[ ! "${{ inputs.tag_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "tag is invalid: must be in the form 'v0.0.0'"
exit 1
fi
- name: Create tag
uses: actions/github-script@v5
with:
Expand Down

0 comments on commit 9f66327

Please sign in to comment.