From 78f1ed509ea858c78a42d5cdc743d3f137592055 Mon Sep 17 00:00:00 2001 From: Sthope Date: Mon, 17 Mar 2025 22:46:20 +0100 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 5e0083e..e2c9e3a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -34,21 +34,12 @@ jobs: if [ "$(printf '%s\n' "$GITEA_VERSION" "$GITHUB_VERSION" | sort -V | head -n1)" = "$GITHUB_VERSION" ]; then echo "❌❌GitHub release is older or the same. Stopping workflow.❌❌" - #exit 1 - PB_TOKEN="${{ secrets.PB_TOKEN }}" - echo "PB_TITLE=${{ matrix.project_name }}" >> $GITEA_ENV - curl -u ${PB_TOKEN}: -X POST https://api.pushbullet.com/v2/pushes \ - --header 'Content-Type: application/json' \ - --data-binary '{"type": "note", "title": "$PB_TITLE", "body": "$PB_TITLE new: $GITHUB_VERSION" }' + exit 1 else echo "✅✅GitHub release is newer. Continuing workflow.✅✅" PB_TOKEN="${{ secrets.PB_TOKEN }}" echo "PB_TITLE=${{ matrix.project_name }}" >> $GITEA_ENV - curl -u ${PB_TOKEN}: -X POST https://api.pushbullet.com/v2/pushes \ - --header 'Content-Type: application/json' \ - --data-binary '{"type": "note", \ - "title": "$PB_TITLE", \ - "body": "$PB_TITLE new: $GITHUB_VERSION" }' + curl -u ${PB_TOKEN}: -X POST https://api.pushbullet.com/v2/pushes --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "$PB_TITLE", "body": "$PB_TITLE new: $GITHUB_VERSION" }' fi - name: Installing dependencies & Cloning repository @@ -75,7 +66,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: ${{ matrix.project_name }}-${{ env.GITHUB_VERSION }}-${{ matrix.target }}.uf2 + name: ${{ matrix.target }}-${{ env.GITHUB_VERSION }}.uf2 path: | ${{ gitea.workspace }}/output/*.uf2