Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 896bd47

Browse files
committedApr 17, 2024
Fix conditions
1 parent a3264da commit 896bd47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎.github/workflows/pre-commit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ jobs:
7272
steps:
7373
- name: Report success
7474
if: |
75-
contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge')
75+
contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge') &&
76+
needs.lint.result == 'success'
7677
uses: actions/github-script@v7
7778
with:
7879
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -88,7 +89,8 @@ jobs:
8889
8990
- name: Report pending
9091
if: |
91-
${{ !contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge') }}
92+
!contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge') ||
93+
needs.lint.result == 'failure'
9294
uses: actions/github-script@v7
9395
with:
9496
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.