ci: download actionlint from github releases

This commit is contained in:
Ivan Dyachkov 2023-08-04 09:07:10 +02:00
parent 559cda5d74
commit 8232d8bc8b
2 changed files with 6 additions and 2 deletions

View File

@ -23,8 +23,11 @@ runs:
# https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
- name: Check workflow files
shell: bash
env:
ACTIONLINT_VSN: 1.6.25
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
wget https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VSN}/actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz
tar xfz actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz
# TODO: enable shellcheck when all the current issues are fixed
./actionlint -color \
-shellcheck= \

View File

@ -29,4 +29,5 @@ docker run --rm -it -v "$(pwd):/emqx" -w /emqx \
-e GITHUB_BASE_REF="$BEFORE_REF" \
-e MIX_ENV=emqx-enterprise \
-e PROFILE=emqx-enterprise \
"${EMQX_BUILDER}" /bin/bash -c "${commands}"
-e ACTIONLINT_VSN=1.6.25 \
"${EMQX_BUILDER}" /bin/bash -c "git config --global --add safe.directory /emqx; ${commands}"