From 5b681e787d0eb62b69a0e0948cd09f0f48891d1f Mon Sep 17 00:00:00 2001 From: Resilex Hitanachi Date: Wed, 8 Jan 2025 13:08:45 -0500 Subject: [PATCH] Try bash manipulations --- .gitea/workflows/zip.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/zip.yaml b/.gitea/workflows/zip.yaml index ea6ea37..cca3473 100644 --- a/.gitea/workflows/zip.yaml +++ b/.gitea/workflows/zip.yaml @@ -24,9 +24,12 @@ jobs: - name: Get current repo id: repo run: echo "::set-output name=repo::$(result=$(echo "basename ${{ gitea.repository }}"))" + + - name: "Verify variable" + run: echo ${GITEA_REPOSITORY#*/} - name: Zip repository - run: zip -r ${{ steps.repo.outputs.repo }}-${{ steps.date.outputs.date }}.zip . -x "*.git*" + run: zip -r ${GITEA_REPOSITORY#*/}-${{ steps.date.outputs.date }}.zip . -x "*.git*" - name: Release artifacts to Gitea repository uses: akkuman/gitea-release-action@v1 @@ -34,6 +37,6 @@ jobs: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: files: |- - ${{ steps.repo.outputs.repo }}-${{ inputs.version }}.zip + ${GITEA_REPOSITORY#*/}-${{ inputs.version }}.zip tag_name: ${{ inputs.version }} name: Release - ${{ inputs.version }} \ No newline at end of file