Skip to content

Commit

Permalink
Restrict release action to main branch (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbihel authored Sep 25, 2024
1 parent e644915 commit 133cdec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
validation:
runs-on: ubuntu-latest
steps:
- name: Validate main branch
if: github.ref_name != github.event.repository.default_branch
run: |
echo "Branch is not main"
exit 0
- name: Validate tag
run: |
echo "${{ github.event.inputs.version }}" | grep -P '^[0-9]+\.[0-9]+\.[0-9]+'
Expand Down

0 comments on commit 133cdec

Please sign in to comment.