From 2c976381409dfc2c56d358b4f46554603d2b98b1 Mon Sep 17 00:00:00 2001 From: Sthope Date: Mon, 17 Mar 2025 21:40:29 +0100 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 5ca420d..7ccf41d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -17,13 +17,6 @@ jobs: - name: Compare Versions run: | - PB_TOKEN="${{ secrets.PB_TOKEN }}" - 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" }' - GITHUB_REPO="wiredopposite/OGX-Mini" GITHUB_VERSION=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest" | jq -r .tag_name) echo "GitHub Latest Version: $GITHUB_VERSION" @@ -37,7 +30,13 @@ 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 + #exit 1 + PB_TOKEN="${{ secrets.PB_TOKEN }}" + 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" }' else echo "✅✅GitHub release is newer. Continuing workflow.✅✅" PB_TOKEN="${{ secrets.PB_TOKEN }}"