From bd9288d20eb3280e5a643ec1936364068a5a1548 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Wed, 6 Dec 2023 15:45:19 +0100 Subject: [PATCH] fixed build nameing --- .gitea/workflows/build-appimage.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-appimage.yaml b/.gitea/workflows/build-appimage.yaml index 45d41e8..5bd7b2d 100644 --- a/.gitea/workflows/build-appimage.yaml +++ b/.gitea/workflows/build-appimage.yaml @@ -16,6 +16,11 @@ jobs: - run: | apt-get -y update apt-get -y install python3-yaml python3-requests + - name: Declare some variables + shell: bash + run: | + echo "SHA_SHORT=$(git rev-parse --short "$GITEA_SHA")" >> "$GITEA_ENV" + echo "YEAR=$(date +%Y) >> "$GITEA_ENV" - name: Build AppImage run: | eval $(gpg-agent --daemon --allow-preset-passphrase --default-cache-ttl 1 --max-cache-ttl 7200) @@ -25,13 +30,11 @@ jobs: env: GPG_KEYGRIP: ${{ vars.GPG_KEYGRIP }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - GO_PIPELINE_LABEL: ${{ gitea.event.repository.updated_at}}_${{ gitea.sha }} + GO_PIPELINE_LABEL: ${{ env.YEAR }}.${{ gitea.run_number }}_${{ env.SHA_SHORT }} - name: Upload AppImage - run: | - ls - ./tools/upload_gitea.sh + run: ./tools/upload_gitea.sh env: - GO_PIPELINE_LABEL: ${{ gitea.event.repository.updated_at}}_${{ gitea.sha }} - UPLOAD_TOKEN: ${{ vars.GITEA_TOKEN }} + GO_PIPELINE_LABEL: ${{ env.YEAR }}.${{ gitea.run_number }}_${{ env.SHA_SHORT }} + UPLOAD_TOKEN: ${{ secrets.GITEA_TOKEN }} UPLOAD_USER: ${{ vars.GITEA_USER }} - run: echo "🍏 This job's status is ${{ job.status }}."