Open ryuheechul opened 3 years ago
I experience this with such action below
- name: yq - my yq step uses: mikefarah/yq@v4.9.6 with: cmd: yq --help
it appears to use https://github.com/mikefarah/yq/blob/master/Dockerfile even though it points to https://github.com/mikefarah/yq/blob/master/github-action/Dockerfile via https://github.com/mikefarah/yq/blob/master/action.yml#L15.
Probably somethings should be done in this line below to fix this issue. https://github.com/nektos/act/blob/a9fe0383478554705100dc4416b235b2265f718c/pkg/runner/step_context.go#L472
- Operating System: macOS - Architecture: arm64 (64-bit) - Apple M1: yes - Docker version: 20.10.7 - Docker image used in `act`: catthehacker/ubuntu:act-latest - `act` version: act version 0.2.23
use the right context path (github.com/mikefarah/yq/github-action(/Dockerfile)) to build the image
github.com/mikefarah/yq/github-action(/Dockerfile)
use the wrong context path (github.com/mikefarah/yq(/Dockerfile) to build the image
github.com/mikefarah/yq(/Dockerfile
act
About the usage of the yq action, not only works in Github, you can find the spec here as well, https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsimage.
yq
Issue is stale and will be closed in 14 days unless there is new activity
I'm seeing this too
I experience this with such action below
it appears to use https://github.com/mikefarah/yq/blob/master/Dockerfile even though it points to https://github.com/mikefarah/yq/blob/master/github-action/Dockerfile via https://github.com/mikefarah/yq/blob/master/action.yml#L15.
Probably somethings should be done in this line below to fix this issue. https://github.com/nektos/act/blob/a9fe0383478554705100dc4416b235b2265f718c/pkg/runner/step_context.go#L472
System information
Expected behaviour
use the right context path (
github.com/mikefarah/yq/github-action(/Dockerfile)
) to build the imageActual behaviour
use the wrong context path (
github.com/mikefarah/yq(/Dockerfile
) to build the imageWorkflow and/or repository
workflow
```yaml name: example workflow on: [push] jobs: example-action: runs-on: ubuntu-latest steps: - name: yq - my yq step uses: mikefarah/yq@v4.9.6 with: cmd: yq --help ```Steps to reproduce
act
outputLog
```none ... [Repository xxx/myEvent] Starting container: 9403a846d8fa99c60c066cc1b480e0b2039f6d47149122953583cc4abaaed313 | Error: unknown command "yq e --help" for "yq" | Run 'yq --help' for usage. ```Additional information
About the usage of the
yq
action, not only works in Github, you can find the spec here as well, https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runsimage.