adaptations forgejo/github
Some checks failed
/ GenerateReleaseZipfile (push) Failing after 1m8s

This commit is contained in:
Chl 2024-08-29 03:41:12 +02:00
parent ecdbe8b216
commit c2c0f2e164
2 changed files with 6 additions and 2 deletions

View file

@ -34,7 +34,6 @@ jobs:
set -x set -x
printf "steps.uploading.outputs.artifact-id: %s\n" "${{ steps.uploading.outputs.artifact-id }}" printf "steps.uploading.outputs.artifact-id: %s\n" "${{ steps.uploading.outputs.artifact-id }}"
printf "steps.uploading.outputs.artifact-url: %s\n" "${{ steps.uploading.outputs.artifact-url }}" printf "steps.uploading.outputs.artifact-url: %s\n" "${{ steps.uploading.outputs.artifact-url }}"
printf "$GITHUB_RUN_ID\n"
- name: Check the content of the uploaded artifact - name: Check the content of the uploaded artifact
run: | run: |

View file

@ -93,7 +93,12 @@ runs:
# Store the outputs # Store the outputs
ARTIFACT_ID="$( echo "$RESPONSE" | sed -n 's/.*"artifactId" *: *"\([^"]\+\)".*/\1/p' )" ARTIFACT_ID="$( echo "$RESPONSE" | sed -n 's/.*"artifactId" *: *"\([^"]\+\)".*/\1/p' )"
echo artifact-id="$ARTIFACT_ID" >> $GITHUB_OUTPUT echo artifact-id="$ARTIFACT_ID" >> $GITHUB_OUTPUT
echo artifact-url="$GITHUB_SERVER_URL"/"$GITHUB_REPOSITORY"/actions/runs/"$GITHUB_RUN_ID"/artifacts/"$ARTIFACT_ID" >> $GITHUB_OUTPUT if [ "$GITHUB_SERVER_URL" = "https://github.com" ]; then
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
echo artifact-url="$GITHUB_SERVER_URL"/"$GITHUB_REPOSITORY"/actions/runs/"$GITHUB_RUN_NUMBER"/artifacts/"${{ input.name }}" >> $GITHUB_OUTPUT
fi
# Cleanup # Cleanup
if [ "${{ inputs.compression }}" == "true" ]; then if [ "${{ inputs.compression }}" == "true" ]; then