upload-artifact-with-wget/.forgejo/workflows/generate-release-zipfile.yml
Chl 6af83b5d77
All checks were successful
/ GenerateReleaseZipfile (push) Successful in 1m7s
little try 6
2024-08-29 02:37:34 +02:00

50 lines
1.7 KiB
YAML

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 }}"
printf "mytest: %s\n" "$MYTEST"
printf "mytest2: %s\n" "${{ github.env.MYTEST }}"
env:
RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
MYTEST: "${{ github.server_url }}/${{ github.repository }}@${{ github.env.RELEVANT_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 }}"