Can't figure how to get this working with act
seaders opened this issue Β· comments
After running into too many issues for my sanity with github's actions when we do a release, I set up https://github.com/nektos/act which has been an absolute lifesaver. With it, I've been able to debug and workout every issue I was having with them, and one issue I was having with this library, and environment variables, but I wasn't able to actually get an upload to work.
This is, I think, the main section of note,
- name: Pack zips
run: |
cd build/chrome-mv3-prod
zip -r ../$BASENAME.zip .
sed -i '/"key": "MIIBI/d' manifest.json
zip -r ../$BASENAME-upload.zip .
- name: "Upload zips"
uses: svenstaro/upload-release-action@v2
with:
file: build/${{ env.BASENAME }}*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Which works perfectly on github, but errors out, without too much information, run with act.
Here's the output of the last run I tried to do, locally
[Release/build] β
Success - Main Pack zips
[Release/build] β Run Main Upload zips
[Release/build] π³ docker cp src=/Users/seaders/.cache/act/svenstaro-upload-release-action@v2/ dst=/var/run/act/actions/svenstaro-upload-release-action@v2/
[Release/build] π³ docker exec cmd=[node /var/run/act/actions/svenstaro-upload-release-action@v2/dist/index.js] user= workdir=
[Release/build] π¬ ::debug::Getting release by tag 0.7.398.
[Release/build] π¬ ::debug::Release for tag 0.7.398 doesn't exist yet so we'll create it now.
[Release/build] β ::error::Not Found
[Release/build] β Failure - Main Upload zips
[Release/build] exitcode '1': failure
[Release/build] π Job failed
Only info I get there is "Not found", without any other info. If there was more info, I might be able to figure it out myself, but unfortunately, especially with it working in github actions, I don't really know where to start.