Skip to content
name: JDTLS Milestone Release Checker
on:
# schedule:
# Runs daily at midnight UTC
# - cron: "0 0 * * *"
push:
branches:
- main
workflow_dispatch:
jobs:
check-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get latest milestone from Eclipse
id: get_latest
run: |
pip install requests
echo "latest_version=$(python ./get_latest.py)" >> $GITHUB_ENV
- 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)
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 '*************'