1 name: "Refresh jdk25 from Upstream" 2 on: 3 schedule: 4 - cron: '0 8 * * *' 5 workflow_dispatch: 6 env: 7 UPSTREAM_REMOTE: https://github.com/openjdk/jdk.git 8 LOCAL_BRANCH: develop 9 10 jobs: 11 refresh-jdk: 12 runs-on: ubuntu-latest 13 name: "Update Corretto-25" 14 if: github.repository_owner == 'corretto' 15 steps: 16 - name: "Checkout code" 17 uses: actions/checkout@v2 18 with: 19 fetch-depth: 0 20 ref: ${{ env.LOCAL_BRANCH }} 21 22 - name: "Configure the user" 23 run: | 24 git config user.email "no-reply@amazon.com" 25 git config user.name "corretto-github-robot" 26 27 - name: "Merge openjdk/jdk:jdk25 to the corretto-25:develop" 28 run: | 29 git fetch $UPSTREAM_REMOTE jdk25 || exit 1 30 git merge -m "Merge upstream-jdk" FETCH_HEAD 31 32 - name: "Update Corretto version" 33 shell: bash 34 run: bash ./.github/scripts/update-version.sh $UPSTREAM_REMOTE 35 36 - name: "Push to the corretto-25" 37 run: git push origin $LOCAL_BRANCH