diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 17f96ea..99c2f57 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -23,8 +23,8 @@ jobs: GITEA_URL="https://git.sthope.dev" GITEA_REPO="sthope/OGX-Mini" - GITHUB_VERSION=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest" | jq -r .tag_name) - echo "GITHUB_VERSION=$GITHUB_VERSION" >> $GITEA_ENV + GITHUB_V=$(curl -s "https://api.github.com/repos/$GITHUB_REPO/releases/latest" | jq -r .tag_name) + echo "GITHUB_VERSION=$GITHUB_V" >> $GITEA_ENV GITEA_VERSION=$(curl -s "$GITEA_URL/api/v1/repos/$GITEA_REPO/releases/latest" -H 'accept: application/json' | jq -r '.tag_name') echo "GITEA_VERSION=$GITEA_VERSION" >> $GITEA_ENV @@ -38,7 +38,7 @@ jobs: else echo "✅✅GitHub release is newer. Continuing workflow.✅✅" 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}" }' + 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_V ${GITHUB_V} $(GITHUB_V)" }' fi - name: Installing dependencies & Cloning repository