Repository navigation
Self hosted Runner with act #2647
Replies: 2 comments
|
self-hosted in runs-on is a GitHub label, not an instruction for act to reuse the software installed on your GitHub runner host. act maps labels to container images and runs the job inside that container, so zowe must exist in the selected image or be installed by the workflow. Use one of these approaches:
Also check the exact runs-on expression. If it is an array such as [self-hosted, linux, x64], map the label act selects or pass the corresponding -P entries. Running act -v will show the selected platform image. The project README describes act's model: it maps the workflow to Docker images and runs actions inside containers: How Does It Work?. |
|
Two ways to fix it: 1. Run on the host directly (no container): act -P self-hosted=-self-hostedThat maps the 2. Keep Docker, but use an image that has Zowe CLI — either add a setup step to your workflow: - run: npm install -g @zowe/clior build a small custom image with Zowe preinstalled and pass it in: act -P self-hosted=my-registry/act-with-zowe:latestOption 1 is fastest if your host is already configured; option 2 keeps the test hermetic. — |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone, I am using act to run action locally but my issue is that due to the fact that my workflow needs self-hosted runner to run parameters like zowe which works fine on the actual github action but whenever I run it through act would fail with zowe: command not found as error.
How can I resolve this
All reactions