From 85f48e7ad20f1caeeb226e5fed4094c1ace466ac Mon Sep 17 00:00:00 2001 From: Peter Njeim Date: Sun, 7 Jul 2024 02:27:58 -0300 Subject: [PATCH] Update publish_new_release.yaml --- .github/workflows/publish_new_release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_new_release.yaml b/.github/workflows/publish_new_release.yaml index 17892b3..4fdd3d8 100644 --- a/.github/workflows/publish_new_release.yaml +++ b/.github/workflows/publish_new_release.yaml @@ -17,8 +17,10 @@ jobs: id: get-latest-release run: | echo "updated=false" >> $GITHUB_ENV - echo "CURRENT_VERSION=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/LibreScore/app-librescore/releases/latest | jq --raw-output ".tag_name")" >> "$GITHUB_OUTPUT" - echo "LATEST_VERSION=$(curl -s -u ${{ secrets.LIBRESCORE_USERNAME }}:${{ secrets.LIBRESCORE_TOKEN }} -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/LibreScore/${{ secrets.LIBRESCORE_REPO_A }}/releases/latest | jq --raw-output ".tag_name")" >> "$GITHUB_OUTPUT" + CURRENT_VERSION="$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/LibreScore/app-librescore/releases/latest | jq --raw-output ".tag_name")" + LATEST_VERSION="$(curl -s -u ${{ secrets.LIBRESCORE_USERNAME }}:${{ secrets.LIBRESCORE_TOKEN }} -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/LibreScore/${{ secrets.LIBRESCORE_REPO_A }}/releases/latest | jq --raw-output ".tag_name")" + echo "CURRENT_VERSION=$CURRENT_VERSION" >> "$GITHUB_OUTPUT" + echo "LATEST_VERSION=$LATEST_VERSION" >> "$GITHUB_OUTPUT" if [[ ${{ steps.get-latest-release.outputs.CURRENT_VERSION }} != ${{ steps.get-latest-release.outputs.LATEST_VERSION }} ]]; then echo "updated=true" >> $GITHUB_ENV fi