Commit e5ae8ab 1 parent f7f0a6a commit e5ae8ab Copy full SHA for e5ae8ab
File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint GitHub Actions workflows
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ actionlint :
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v4
9
+ - name : Check workflow files
10
+ uses : docker://rhysd/actionlint:latest
11
+ with :
12
+ args : -color -ignore SC2086
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ jobs:
10
10
steps :
11
11
- name : Get tag
12
12
id : get_tag
13
- run : echo ::set-output name= TAG:: ${GITHUB_REF/refs\/tags\//}
13
+ run : echo "{ TAG}= ${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
14
14
- name : Get version
15
15
id : get_version
16
- run : echo ::set-output name= VERSION:: ${TAG##v}
16
+ run : echo "{ VERSION}= ${TAG##v}" >> $GITHUB_OUTPUT
17
17
env :
18
18
TAG : ${{ steps.get_tag.outputs.TAG }}
19
19
- name : Prepare message
20
20
id : get_message
21
- run : echo ::set-output name=MSG::" ${{ secrets.SLACK_MESSAGE }}"
21
+ run : echo "{MSG}= ${{ secrets.SLACK_MESSAGE }}" >> $GITHUB_OUTPUT
22
22
env :
23
23
VERSION : ${{ steps.get_version.outputs.VERSION }}
24
24
TAG : ${{ steps.get_tag.outputs.TAG }}
27
27
id : announce_slack
28
28
run : |
29
29
readarray -td' ' URL_LIST <<<$SLACK_WEBHOOKS;
30
- for WEBHOOK_URL in ${URL_LIST[@]};
30
+ for WEBHOOK_URL in " ${URL_LIST[@]}" ;
31
31
do curl -X POST -H 'Content-type: application/json' \
32
32
--data '{
33
33
"blocks": [
You can’t perform that action at this time.
0 commit comments