Skip to content

Commit

Permalink
tist
Browse files Browse the repository at this point in the history
  • Loading branch information
s1n7ax committed Dec 24, 2024
1 parent 9677d0c commit ff454b6
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/jdtls-milestone-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '*************'

0 comments on commit ff454b6

Please sign in to comment.