Created
May 4, 2023 09:54
-
-
Save YukiMatsumura/024e2f4ecc46d658337b605609bdd089 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: download_actionlint | |
run: | | |
ACTION_LINT_VERSION="fd7ba3c382e13dcc0248e425b4cbc3f1185fa3ee" | |
ACTION_LINT_DOWNLOADER_FILE="./actionlint_downloader_${{ github.run_id }}.sh" | |
curl -sSfL "https://raw.githubusercontent.com/rhysd/actionlint/${ACTION_LINT_VERSION}/scripts/download-actionlint.bash" > $ACTION_LINT_DOWNLOADER_FILE | |
echo "34ef891af1766420574c90e2942f13ac7a12117250a6ed65aaa2f82f21829279 ${ACTION_LINT_DOWNLOADER_FILE}" | shasum -a 256 -c | |
chmod +x $ACTION_LINT_DOWNLOADER_FILE | |
$ACTION_LINT_DOWNLOADER_FILE | |
- name: validate actionlint | |
run: | | |
ACTION_LINT=${{ steps.download_actionlint.outputs.executable }} | |
echo "ce0b6b7a99cd9111597c74464f825d2f6bdfd7cc19b88bbcf1e77961f5318b0d ${ACTION_LINT}" | shasum -a 256 -c | |
chmod +x $ACTION_LINT | |
# actionlintを実行する | |
# actionlint docs: https://github.com/rhysd/actionlint/blob/main/docs/usage.md | |
- name: lint | |
run: | | |
ACTION_LINT=${{ steps.download_actionlint.outputs.executable }} | |
$ACTION_LINT -c .github/actionlint.yml .github/workflows/*.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment