Skip to content

Commit

Permalink
ci(tasj-nr): validate release branch (#17)
Browse files Browse the repository at this point in the history
Co-authored-by: André Caiado da Silva <[email protected]>
  • Loading branch information
andrecaiado and acaiado authored Mar 5, 2024
1 parent 7dae882 commit f1ac3a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
deploy: ${{ steps.set-deploy.outputs.DEPLOY }}
environment: ${{ steps.set-deploy.outputs.ENVIRONMENT }}
steps:
- name: Validate release target branch
if: ${{ github.event_name == 'release' }}
run: |
if [[ "${{ github.event.release.target_commitish }}" != "main" ]]; then
echo "Release target branch is not main"
exit 1
fi
- name: Set tag version
id: set-tag-version
shell: bash
Expand Down

0 comments on commit f1ac3a2

Please sign in to comment.