.github/workflows/jdk.java.net-uri-update.yml #12134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |