Skip to content

Commit

Permalink
Add workflow to refresh jdk23 from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
chadrako committed Jun 19, 2024
1 parent 1079127 commit 9767086
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/refresh-jdk.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/refresh-jdk23.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
workflow_dispatch:
env:
UPSTREAM_REMOTE: https://github.com/openjdk/jdk.git
LOCAL_BRANCH: jdk23
LOCAL_BRANCH: develop
jobs:
refresh-jdk:
runs-on: ubuntu-latest
name: "Update Corretto-jdk"
name: "Update Corretto-23"
if: github.repository_owner == 'corretto'
steps:
- name: "Checkout code"
Expand All @@ -21,12 +21,12 @@ jobs:
run: |
git config user.email "no-reply@amazon.com"
git config user.name "corretto-github-robot"
- name: "Merge openjdk/jdk:jdk23 to the corretto-jdk:jdk23"
- name: "Merge openjdk/jdk:jdk23 to the corretto-23:develop"
run: |
git fetch $UPSTREAM_REMOTE jdk23 || exit 1
git merge -m "Merge upstream-jdk" FETCH_HEAD
git merge -m "Merge upstream-jdk23" FETCH_HEAD
- name: "Update Corretto version"
shell: bash
run: bash ./.github/scripts/update-version.sh $UPSTREAM_REMOTE
- name: "Push to the corretto-jdk"
- name: "Push to the corretto-23"
run: git push origin $LOCAL_BRANCH

0 comments on commit 9767086

Please sign in to comment.