Skip to content

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

@seaders

Description

@seaders

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions