From ff454b61816ed449746328eb6a94be0a06c9b932 Mon Sep 17 00:00:00 2001 From: s1n7ax Date: Wed, 25 Dec 2024 02:25:28 +0530 Subject: [PATCH] tist --- .github/workflows/jdtls-milestone-checker.yml | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/jdtls-milestone-checker.yml b/.github/workflows/jdtls-milestone-checker.yml index 3a1ee51..e8b3f71 100644 --- a/.github/workflows/jdtls-milestone-checker.yml +++ b/.github/workflows/jdtls-milestone-checker.yml @@ -23,12 +23,22 @@ jobs: pip install requests echo "latest_version=$(python ./get_latest.py)" >> $GITHUB_ENV - - name: Get Current Release - id: get_current_release - uses: joutvhu/get-release@v1 - with: - debug: true + - name: Fetch Repository Releases and Check for Version 10.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "Fetching releases for repository..." + releases=$(curl -H "Authorization: Bearer $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/${{ github.repository }}/releases) - - name: Echo + echo "Checking for version 10.3..." + if echo "$releases" | jq -e '.[] | select(.tag_name == "10.3")' > /dev/null; then + echo "Version 10.3 found!" + else + echo "Version 10.3 not found." + exit 1 + fi + - name: test run: | - echo "${{ steps.get_current_release.outputs.upload_url }}" + echo '*************'