Skip to content

Commit

Permalink
Merge pull request #36 from jsfillman/develop
Browse files Browse the repository at this point in the history
Add release source branch check
  • Loading branch information
jsfillman authored Mar 2, 2022
2 parents 091f213 + d08b62c commit 56d1572
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/prod_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Report SemVer Check
if: steps.check-tag.outputs.match != 'true'
run: echo "Release version must follow semantic naming (e.g. 1.0.2)"; exit 1
- name: Check Source Branch
if: github.event.release.target_commitish != 'master' && github.event.release.target_commitish != 'main'
run: echo "Releases must be built from master/main branch"; exit 1
- name: Check out GitHub Repo
with:
ref: "${{ github.event.pull_request.head.sha }}"
Expand Down

0 comments on commit 56d1572

Please sign in to comment.