act: [BUG] Can't use yarn
Whenever I try to call any yarn command the act returns an error and fails to execute: Failed to replace env in config: ${{ inputs.auth-token }. I tried to search trough existing issues, over the internet and nothing with this exact error pops up.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 17
- Comments: 15 (2 by maintainers)
I had the same problem but resolved it by switching to the
Largeimage duringactfirst-run.You can do this be deleting
~/.actrcthen runactagain.@chetbox yarn is not installed in the “slim” version. You can easily run
npm i -g yarnas a separate step if you don’t want to have 18Gb of Images on your PC 😄 However I think this is not related to this issue.Thanks for this! Just want to add that this is done with the
-Por--platformflag since this wasn’t immediately clear to me. This flag allows you to map theruns-onvalue to an image. Example mappingubuntu-latesttoubuntu:js-latest:Oddly, this didn’t work for me, today. So I had to use
-P ubuntu-latest=node:14…I had to use
ubuntu:js-latestinstead of defaultubuntu:act-latest. Here is where I noticed that the first one includesyarnas well: https://hub.docker.com/r/catthehacker/ubuntu.Issue is stale and will be closed in 7 days unless there is new activity
One can replace
.../catthehacker/ubuntu:act-latestwith.../catthehacker/ubuntu:js-latestin the.actrcfile - then one does not need to specify it everytime.I didn’t. I ended up not using this tool 😦