Finalization tryout...
All checks were successful
/ GenerateReleaseZipfile (push) Successful in 1m13s
All checks were successful
/ GenerateReleaseZipfile (push) Successful in 1m13s
This commit is contained in:
parent
31cfa7d900
commit
917b4170ee
2 changed files with 19 additions and 11 deletions
11
action.yml
11
action.yml
|
@ -36,13 +36,15 @@ runs:
|
|||
steps:
|
||||
# ACTIONS_RUNTIME_TOKEN is not yet available (2024-08) for composite actions on Github :
|
||||
# https://github.com/actions/runner/issues/3046
|
||||
- name: Expose GitHub Runtime
|
||||
if: env.ACTIONS_RUNTIME_TOKEN == ''
|
||||
uses: "https://github.com/crazy-max/ghaction-github-runtime@v3"
|
||||
# Forgejo tries to download this remote action even if it's not needed :
|
||||
# uncomment if you want to run this action in Github.
|
||||
#- name: Expose GitHub Runtime
|
||||
# if: env.ACTIONS_RUNTIME_TOKEN == ''
|
||||
# uses: "https://github.com/crazy-max/ghaction-github-runtime@v3"
|
||||
|
||||
- name: Upload artifact (using v4)
|
||||
shell: sh
|
||||
# id required for the outputs extraction
|
||||
# id for reference in the outputs extraction
|
||||
id: uploading
|
||||
run: |
|
||||
# Some optional help for debugging.
|
||||
|
@ -117,6 +119,7 @@ runs:
|
|||
ARTIFACT_ID="$( echo "$RESPONSE" | sed -n 's/.*"artifact_\?Id" *: *"\([^"]\+\)".*/\1/ip' )"
|
||||
echo artifact-id="$ARTIFACT_ID" >> $GITHUB_OUTPUT
|
||||
if [ "$GITHUB_SERVER_URL" = "https://github.com" ]; then
|
||||
# note: as an alternative, there is https://api.github.com/repos/OWNER/REPO/actions/artifacts/ARTIFACT_ID
|
||||
echo artifact-url="$GITHUB_SERVER_URL"/"$GITHUB_REPOSITORY"/actions/runs/"$GITHUB_RUN_ID"/artifacts/"$ARTIFACT_ID" >> $GITHUB_OUTPUT
|
||||
else
|
||||
# Gitea & Forgejo : github.run_number instead of github.run_id and name of the artifact instead of artifact_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue