Skip to content

Commit

Permalink
Fixing logic in check for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
DevOpsDave committed Jan 10, 2024
1 parent 4f0f163 commit 647824f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-for-release-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:

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

0 comments on commit 647824f

Please sign in to comment.