Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Lint GitHub Actions workflows
on: [push, pull_request]

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check workflow files
uses: docker://rhysd/actionlint:latest
with:
args: -color -ignore SC2086
8 changes: 4 additions & 4 deletions .github/workflows/announce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
steps:
- name: Get tag
id: get_tag
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
run: echo "{TAG}=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${TAG##v}
run: echo "{VERSION}=${TAG##v}" >> $GITHUB_OUTPUT
env:
TAG: ${{ steps.get_tag.outputs.TAG }}
- name: Prepare message
id: get_message
run: echo ::set-output name=MSG::"${{ secrets.SLACK_MESSAGE }}"
run: echo "{MSG}=${{ secrets.SLACK_MESSAGE }}" >> $GITHUB_OUTPUT
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
TAG: ${{ steps.get_tag.outputs.TAG }}
Expand All @@ -27,7 +27,7 @@ jobs:
id: announce_slack
run: |
readarray -td' ' URL_LIST <<<$SLACK_WEBHOOKS;
for WEBHOOK_URL in ${URL_LIST[@]};
for WEBHOOK_URL in "${URL_LIST[@]}";
do curl -X POST -H 'Content-type: application/json' \
--data '{
"blocks": [
Expand Down
Loading