From 2b51e089c29db1c5329d8b55aad5f10c0c8897bd Mon Sep 17 00:00:00 2001 From: Sthope Date: Mon, 17 Mar 2025 22:40:16 +0100 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 00862c0..58c4e6a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -32,14 +32,22 @@ 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 - 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": "${{ matrix.project_name }}", \ - "body": "${{ matrix.project_name }} new: $GITHUB_VERSION" }' + "title": "$PB_TITLE", \ + "body": "$PB_TITLE new: $GITHUB_VERSION" }' + 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" }' fi - name: Installing dependencies & Cloning repository