Skip to content

Commit

Permalink
update...
Browse files Browse the repository at this point in the history
  • Loading branch information
DevOpsDave committed Jan 10, 2024
1 parent 0cfcbb6 commit d963294
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check-for-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ jobs:
uses: actions-ecosystem/[email protected]
id: release-label

- run: echo "Release label is ${{ steps.release-label.outputs.level }}"
- run: echo "Release labels has skip: ${{ contains(github.event.pull_request.labels.*.name, 'release/skip') }}"

- run: echo "Release level is ${{ steps.release-label.outputs.level }}"

- name: Fail if label does not exist
#if: ${{ ! ( contains(github.event.pull_request.labels.*.name, 'release/patch') || contains(github.event.pull_request.labels.*.name, 'release/minor') || contains(github.event.pull_request.labels.*.name, 'release/major') || contains(github.event.pull_request.labels.*.name, 'release/skip') ) }}
if: ${{ ( steps.release-label.outputs.level == null ) }}
if: ${{ ( steps.release-label.outputs.level == null ) && ( ! contains(github.event.pull_request.labels.*.name, 'release/skip') ) }}
run: echo "Please label your PR with a release label" && exit 1

# ensure changelog.txt has been updated in this PR by comparing it to the one in the master branch
Expand Down

0 comments on commit d963294

Please sign in to comment.