on: push: jobs: GenerateReleaseZipfile: runs-on: docker container: image: entrepot.xlii.si/actions/alpine-wget-git-zip:latest steps: - name: Generate some content run: | set -ex mkdir toto echo tata > toto/tata.txt echo titi > toto/titi.txt echo titi titi > "toto/titi titi.txt" echo tutu > tutu.txt echo tutu >> tutu.txt echo tutuuuuu >> tutu2.txt echo tutuuuuu >> "tutu tutu.txt" echo ratata >> 'tutu tutu*.txt' ls -R - name: little test run: | printf "url:\n%s\n%s\n%s\nThe end." \ "${{ github.server_url }}" \ "${{ github.repository }}" \ "${{ github.env.RELEVANT_SHA }}" env: RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} - name: Testing the artifact uploading id: "uploading" 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: | set -x printf "steps.uploading.outputs.artifact-id: %s\n" "${{ steps.uploading.outputs.artifact-id }}"