diff --git a/.forgejo/workflows/generate-release-zipfile.yml b/.forgejo/workflows/generate-release-zipfile.yml index 34fab6c..a487477 100644 --- a/.forgejo/workflows/generate-release-zipfile.yml +++ b/.forgejo/workflows/generate-release-zipfile.yml @@ -21,13 +21,22 @@ jobs: echo ratata >> 'tutu tutu*.txt' ls -R + - name: little test + run: printf "url: %s\nThe end." "${{ github.server_url }}/${{ github.repository }}@${{ github.env.RELEVANT_SHA }}" + env: + # from https://github.com/orgs/community/discussions/26325#discussioncomment-5397362 + RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + - name: Testing the artifact uploading id: "uploading" - uses: "${{ github.server_url }}/${{ github.repository }}@${{ github.sha }}" + uses: "${{ github.server_url }}/${{ github.repository }}@${{ github.env.RELEVANT_SHA }}" with: path: | toto tutu* + env: + # from https://github.com/orgs/community/discussions/26325#discussioncomment-5397362 + RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} - name: Is there any output for the previous step ? run: |