You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a GH Release with files to upload as artifacts, the GH Release is published before the file uploads are done.
This means that any workflow triggered from a GH Release being "published", will start running before all the artifacts are availble in the release.
on:
release:
types: publishedjobs:
download-release-artifacts:
runs-on: ubuntu-lateststeps:
- name: Set the GH Release tag to step outputid: get_tagshell: bashrun: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT# At this point the GH release artifacts might not have been completely uploaded by ncipollo/release-action
- name: Download GH Release artifactsshell: bashrun: gh release download ${{ steps.get_tag.outputs.tag }} --repo ${{ github.server_url }}/${{ github.repository }}env:
GH_TOKEN: ${{ github.token }}
The text was updated successfully, but these errors were encountered:
For a workaround I'll likely just add a hacky wait/delay in my project.
Would it make sense for this action to create first a draft release, to be able to add the artifacts, and then publish it?
I guess there might be more events fired at that point, so not sure if that's better or worse for the default behaviour.
Yeah I'd be worried that would generate more events, and is even less atomic than it is now (if something breaks in the middle of that users would be left with a seemingly random draft release).
I think you can achieve something similar though by chaining two release actions together, the first is a draft with artifacts, the second updates it to non-draft.
When creating a GH Release with files to upload as artifacts, the GH Release is published before the file uploads are done.
This means that any workflow triggered from a GH Release being "published", will start running before all the artifacts are availble in the release.
The text was updated successfully, but these errors were encountered: