1717 runs-on : ubuntu-latest
1818
1919 steps :
20- - uses : actions/checkout@v2
20+ - uses : actions/checkout@v5
2121
2222 - name : Lint
2323 run : ./.github/scripts/lint.sh
2828 - lint
2929
3030 steps :
31- - uses : actions/checkout@v2
31+ - uses : actions/checkout@v5
3232 - uses : azure/setup-helm@v4.3.0
3333 - uses : bmuschko/setup-kubeconform@v1
3434
4343 - eval
4444
4545 steps :
46- - uses : actions/checkout@v2
46+ - uses : actions/checkout@v5
4747
4848 - uses : actions/setup-java@v1
4949 with :
@@ -65,29 +65,25 @@ jobs:
6565
6666 comment :
6767 runs-on : ubuntu-latest
68- needs :
69- - " check-labels"
70-
71- if : always()
68+ needs :
69+ - check-labels
70+ if : always() && needs.check-labels.result == 'failure'
7271 steps :
73- - uses : technote-space/workflow-conclusion-action@v2
7472 - name : Checkout
75- uses : actions/checkout@v1
76-
73+ uses : actions/checkout@v5
7774 - name : Comment PR
78- if : env.WORKFLOW_CONCLUSION == 'failure'
79- uses : thollander/actions-comment-pull-request@1.0.2
75+ uses : thollander/actions-comment-pull-request@v3.0.0
8076 with :
8177 message : " Please apply one of the following labels to the PR: 'patch', 'minor', 'major'."
82- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78+ github-token : ${{ secrets.GITHUB_TOKEN }}
8379
8480 prepare-release :
8581 needs : ["check-labels", "comment"]
8682
8783 runs-on : ubuntu-latest
8884
8985 steps :
90- - uses : actions/checkout@v3
86+ - uses : actions/checkout@v5
9187 with :
9288 fetch-depth : 0
9389
@@ -108,12 +104,12 @@ jobs:
108104 go install github.com/mikefarah/yq/v4@latest
109105 yq --version
110106
111- - uses : actions/checkout@v3
107+ - uses : actions/checkout@v5
112108 with :
113109 ref : ${{ github.head_ref }}
114110 path : current-branch
115111
116- - uses : actions/checkout@v3
112+ - uses : actions/checkout@v5
117113 with :
118114 ref : ' master'
119115 path : master
0 commit comments