self-hosted runner の pre hook / post hook script
本家: https://github.blog/changelog/2022-04-04-github-actions-job-management-hooks-for-self-hosted-runners/
Kesin11さんの日本語解説: https://zenn.dev/dena/articles/20220808_github_actions_hooks
メモ
run.sh の環境変数に渡せばとりあえずOK
code:console
ACTIONS_RUNNER_HOOK_JOB_STARTED="${HOME}/tmp/a.sh" ./run.sh
渡したスクリプトが存在していない場合は強制的にエラーになるので注意
本来実行したいCIスクリプトが実行できない
https://gyazo.com/4328a14585be3f50754b95fedef1f035
こうなりました https://github.com/whywaita/myshoes/pull/182