File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 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:
1010 steps :
1111 - name : Get tag
1212 id : get_tag
13- run : echo ::set-output name= TAG:: ${GITHUB_REF/refs\/tags\//}
13+ run : echo "{ TAG}= ${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
1414 - name : Get version
1515 id : get_version
16- run : echo ::set-output name= VERSION:: ${TAG##v}
16+ run : echo "{ VERSION}= ${TAG##v}" >> $GITHUB_OUTPUT
1717 env :
1818 TAG : ${{ steps.get_tag.outputs.TAG }}
1919 - name : Prepare message
2020 id : get_message
21- run : echo ::set-output name=MSG::" ${{ secrets.SLACK_MESSAGE }}"
21+ run : echo "{MSG}= ${{ secrets.SLACK_MESSAGE }}" >> $GITHUB_OUTPUT
2222 env :
2323 VERSION : ${{ steps.get_version.outputs.VERSION }}
2424 TAG : ${{ steps.get_tag.outputs.TAG }}
2727 id : announce_slack
2828 run : |
2929 readarray -td' ' URL_LIST <<<$SLACK_WEBHOOKS;
30- for WEBHOOK_URL in ${URL_LIST[@]};
30+ for WEBHOOK_URL in " ${URL_LIST[@]}" ;
3131 do curl -X POST -H 'Content-type: application/json' \
3232 --data '{
3333 "blocks": [
You can’t perform that action at this time.
0 commit comments