File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed
Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff 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"]
Original file line number Diff line number Diff line change @@ -35,13 +35,15 @@ jobs:
3535
3636 - name : Get PR Number
3737 id : pr_number
38- run : echo "::set-output name=nr::$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')"
38+ run : |
39+ NR=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
40+ echo "nr=$NR" >> $GITHUB_OUTPUT
3941
4042 - name : Set version output
4143 id : out
4244 run : |
43- echo "::set-output name= version::$(echo $ {VERSION}-PRE-${{ steps.pr_number.outputs.nr }})"
44- echo "::set-output name= plain-version::$(echo $ {VERSION})"
45+ echo "version=$ {VERSION}-PRE-${{ steps.pr_number.outputs.nr }}" >> $GITHUB_OUTPUT
46+ echo "plain-version=$ {VERSION}" >> $GITHUB_OUTPUT
4547
4648
4749 git-release :
Original file line number Diff line number Diff line change 5454
5555 - name : Set version output
5656 id : out
57- run : echo "::set-output name= version::$(echo $ {VERSION})"
57+ run : echo "version=$ {VERSION}" >> $GITHUB_OUTPUT
5858
5959 deploy :
6060 name : " Release charts"
You can’t perform that action at this time.
0 commit comments