Skip to content

Commit

Permalink
Github action: allow errors from pre-existing artifact download (thos…
Browse files Browse the repository at this point in the history
…e that come from Cirrus CI) for CI packages, to deal with absent Cirrus artifacts due to Cirrus monthly compute limits.

While here, bump the fetch-gh-release-asset version to latest released v1.1.1 (fixes Github API deprecation warning)
  • Loading branch information
JohanEngelen committed Jan 28, 2024
1 parent ff6ac6b commit cbdce51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/upload-to-github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ runs:
- name: Download existing artifacts from GitHub release
# only enabled for the upstream repo by default - (probably) needs an existing release
if: github.repository == 'ldc-developers/ldc'
uses: dsaltares/fetch-gh-release-asset@1.0.0
# fetch-gh-release-asset errors if there are no existing artifacts (from Cirrus). Allow the error
# for CI builds, because Cirrus sometimes exceeds monthly limit (and thus no artifacts).
continue-on-error: ${{ env.GITHUB_RELEASE_TAG == 'CI' }}
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
version: tags/${{ env.GITHUB_RELEASE_TAG }}
regex: true
Expand Down

0 comments on commit cbdce51

Please sign in to comment.