Skip to content

Commit

Permalink
ci(task-nr): use default branch instead of explicit name (#18)
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 f1ac3a2 commit 4248f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- 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"
if [[ "${{ github.event.release.target_commitish }}" != "${{ github.event.repository.default_branch }}" ]]; then
echo "Release target branch is not the default branch"
exit 1
fi
- name: Set tag version
Expand Down

0 comments on commit 4248f05

Please sign in to comment.