Skip to content

.github/workflows/jdk.java.net-uri-update.yml #12145

.github/workflows/jdk.java.net-uri-update.yml

.github/workflows/jdk.java.net-uri-update.yml #12145

on:
schedule:
- cron: '23 */2 * * *'
workflow_dispatch:
jobs:
update-jdk-uri-properties:
runs-on: ubuntu-latest
permissions: write-all
steps:
- run: curl --output /dev/null --verbose --head --fail https://jdk.java.net
- uses: actions/checkout@v4
- run: $JAVA_HOME_21_X64/bin/java src/ListOpenJavaDevelopmentKits.java > jdk.java.net-uri.properties
- run: |
git diff
git config user.name github_actions_dev
git config user.email github_actions_dev_grp@oracle.com
git add .
if [ -z "$(git status --porcelain)" ]; then
echo 'No changes detected.'
exit 0
fi
git commit --message 'Update `jdk.java.net-uri.properties`'
git push