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

Can't figure how to get this working with act #118

Open
seaders opened this issue Jan 19, 2024 · 0 comments
Open

Can't figure how to get this working with act #118

seaders opened this issue Jan 19, 2024 · 0 comments

Comments

@seaders
Copy link

seaders commented Jan 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant