Skip to content

Commit e5ae8ab

Browse files
remyleonedevtools-ci-cd
and
devtools-ci-cd
authored
ci: add support for actionlint (#2966)
Co-authored-by: devtools-ci-cd <[email protected]>
1 parent f7f0a6a commit e5ae8ab

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/actionlint.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

.github/workflows/announce.yaml

+4-4
Original file line numberDiff line numberDiff 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 }}
@@ -27,7 +27,7 @@ jobs:
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": [

0 commit comments

Comments
 (0)