Open3

act コマンドを使ってみた

hirokita117hirokita117

.actrc の中身
M1 だと警告が出てしまうので

$ cat ~/.actrc
--container-architecture linux/amd64
hirokita117hirokita117

failed to create exec: Error response from daemon: container a42ee93bf46a45d4f5ef51090103b2363e7ff6958d36c7ab44d605a9f97083dd is not running
なぜかこのようなエラーが出たが、docker desktop のバージョンアップを怠っていたからだった

その時の existed してしまうコンテナのログ
👇
rosetta error: Rosetta is only intended to run on Apple Silicon with a macOS host using Virtualization.framework with Rosetta mode enabled

hirokita117hirokita117

act pull_request -j job -W .github/workflows/job.yml -s GITHUB_TOKEN=token

checkout を実行するには -s オプションで GITHUB_TOKEN を付与する必要あり