Skip to content

Commit 6c00785

Browse files
Víctor Rampérez MartínVíctor Rampérez Martín
authored andcommitted
chore(github-action): fix comment step
1 parent 02e6052 commit 6c00785

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/check.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,17 @@ jobs:
6464

6565
comment:
6666
runs-on: ubuntu-latest
67-
needs:
68-
- "check-labels"
69-
70-
if: always()
67+
needs:
68+
- check-labels
69+
if: always() && needs.check-labels.result == 'failure'
7170
steps:
72-
- uses: step-security/workflow-conclusion-action@v3
7371
- name: Checkout
74-
uses: actions/checkout@v1
75-
72+
uses: actions/checkout@v5
7673
- name: Comment PR
77-
if: env.WORKFLOW_CONCLUSION == 'failure'
78-
uses: thollander/actions-comment-pull-request@1.0.2
74+
uses: thollander/actions-comment-pull-request@v3.0.0
7975
with:
8076
message: "Please apply one of the following labels to the PR: 'patch', 'minor', 'major'."
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
github-token: ${{ secrets.GITHUB_TOKEN }}
8278

8379
prepare-release:
8480
needs: ["check-labels", "comment"]

0 commit comments

Comments
 (0)