CI: actionlint が弾く古い GitHub Actions を新バージョンへ更新#114
Draft
kojira wants to merge 1 commit into
Draft
Conversation
actionlint が "the runner of ... action is too old to run" を検出し actions-test ジョブが失敗していた(alpha-0.2 既存の不具合)。 ランタイム廃止された古いアクションを互換性のある最新メジャーへ更新する。 - actions/checkout@v3 -> v4 - actions/setup-node@v2,v3 -> v4 - actions/cache@v3 -> v4 - google-github-actions/auth@v1 -> v2 - google-github-actions/setup-gcloud@v1 -> v2 入力仕様は各アクションで互換のため挙動は変えない。 ローカルで actionlint v1.7.12 がエラーなし(exit 0)を確認済み。 Co-authored-by: kojira <kojira@users.noreply.github.com>
Merged
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
actions-testジョブ(actionlint)がthe runner of "..." action is too old to run on GitHub Actionsを検出して失敗していた問題を修正します。これは
alpha-0.2にもともと存在する CI 失敗で、参拝高速化/ログイン修正(PR #113)とは独立した別件のため、本PRで分離して対応します。原因
GitHub Actions 側でランタイムが廃止された古いアクションバージョンを使用していたため、
actionlintがエラーを返していた。変更内容
setup.yml/dev-deploy.yml/prod-deploy.ymlのアクションを、入力仕様が互換な最新メジャーへ更新:actions/checkoutv3→v4actions/setup-nodev2,v3→v4actions/cachev3→v4google-github-actions/authv1→v2google-github-actions/setup-gcloudv1→v2いずれも入力(
node-version/path/key/credentials_json/project_id等)は互換のため、ワークフローの挙動は変えていません。検証
actionlint v1.7.12を実行し、エラーなし(exit 0) を確認。補足
alpha-0.2にマージすると、PR 参拝の解析処理の高速化とログイン切れの修正 #113 も同ベースを取り込むことでactions-testが通るようになります(参拝の解析処理の高速化とログイン切れの修正 #113 はワークフローに未変更)。