Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support running action in a container #463

Merged
merged 3 commits into from
Jun 22, 2023

Conversation

suzuki-shunsuke
Copy link
Member

@suzuki-shunsuke suzuki-shunsuke commented Jun 22, 2023

Close #461

In a container the variable ${{ github.action_path }} is wrong, so action can't access the script aqua-installer.
This is a known issue of GitHub Actions.

To solve the issue, we copy the content of the script aqua-installer into action itself, then action don't have to access the script aqua-installer.

@suzuki-shunsuke suzuki-shunsuke added this to the v2.1.2 milestone Jun 22, 2023
```
Error: /home/runner/work/aqua-installer/aqua-installer/./action.yaml:
Error: /home/runner/work/aqua-installer/aqua-installer/./action.yaml: (Line: 91, Col: 1, Idx: 3203) - (Line: 91, Col: 1, Idx: 3203): While scanning a simple key, could not find expected ':'.
Error: System.ArgumentException: Unexpected type '' encountered while reading 'action manifest root'. The type 'MappingToken' was expected.
   at GitHub.DistributedTask.ObjectTemplating.Tokens.TemplateTokenExtensions.AssertMapping(TemplateToken value, String objectDescription)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Error: Fail to load /home/runner/work/aqua-installer/aqua-installer/./action.yaml
```
suzuki-shunsuke added a commit to suzuki-shunsuke/test-github-action that referenced this pull request Jun 22, 2023
@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review June 22, 2023 01:16
@suzuki-shunsuke suzuki-shunsuke added the bug Something isn't working label Jun 22, 2023
@suzuki-shunsuke suzuki-shunsuke merged commit 36dc583 into main Jun 22, 2023
@suzuki-shunsuke suzuki-shunsuke deleted the fix/support-container branch June 22, 2023 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub Actions doesn't work in container
1 participant