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 03316c1 commit 5a8e1c5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/check-for-release-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:
uses: actions-ecosystem/[email protected]
id: release-label

#- run: echo "Release labels has skip: ${{ github.event.pull_request.labels }}"

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

- 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: ${{ ( ! 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 5a8e1c5

Please sign in to comment.