dawidd6 / action-download-artifact

:gear: A GitHub Action to download an artifact associated with given workflow and commit or other criteria
MIT License
704 stars 203 forks source link

Step failed even artifact is found and downloaded #230

Open vitalyk-multinarity opened 1 year ago

vitalyk-multinarity commented 1 year ago

Hi, my workflow uses this action as following:

 - name: Download artifacts Unity
        uses: dawidd6/action-download-artifact@master
        id: dw_artifacts_unity
        with:
          github_token: ${{ secrets.CI_TOKEN }}
          workflow: Unity.yml
          name: Android
          branch: ${{ env.ARTIFACT_BRANCH_UNITY }}
          workflow_conclusion: success
          repo: myorg/Unity
          check_artifacts:  true
          path: artifacts/unity

and into worklog log I see:

Run dawidd6/action-download-artifact@master
==> Repository: myorg/Unity
==> Artifact name: Android
==> Local path: artifacts/unity
==> Workflow name: Unity.yml
==> Workflow conclusion: success
==> Branch: master
==> (found) Run ID: 4292084762
==> (found) Run date: 2023-02-28T10:42:20Z
==> Artifact: [57]
==> Downloading: Android.zip (615.39 MB)
==> Extracting: Android.zip
    creating: artifacts/unity/dist/
    inflating: artifacts/unity/README.md
    inflating: artifacts/unity/dist/Android.zip

Why?

TIA, Vitaly

dawidd6 commented 1 year ago

And... umm... what's wrong here?

vitalyk-multinarity commented 1 year ago

And... umm... what's wrong here?

That step marked as failed.

vitalyk-multinarity commented 9 months ago

Finally I understand why download step marked as failed. With debug mode active I see:

 ##[debug]Node Action run completed with exit code 137

So it seems like a memory issue. I found similar issue here https://github.com/softprops/action-gh-release/issues/243. Unfortunately I don't know JS enough and have no idea how to fix it. My artifact about 550MB size.