Skip to content

Commit

Permalink
Add workflow to refresh jdk24 from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrichr committed Dec 12, 2024
1 parent f8a5f35 commit 4795b14
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/refresh-jdk.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Refresh jdk from Upstream"
name: "Refresh jdk24 from Upstream"
on:
schedule:
- cron: '0 8 * * *'
Expand All @@ -7,26 +7,26 @@ env:
UPSTREAM_REMOTE: https://github.com/openjdk/jdk.git
LOCAL_BRANCH: develop
jobs:
refresh-jdk:
runs-on: ubuntu-latest
name: "Update Corretto-jdk"
if: github.repository_owner == 'corretto'
steps:
- name: "Checkout code"
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ env.LOCAL_BRANCH }}
- name: "Configure the user"
run: |
git config user.email "[email protected]"
git config user.name "corretto-github-robot"
- name: "Merge openjdk/jdk:master to the corretto-jdk:develop"
run: |
git fetch $UPSTREAM_REMOTE master || exit 1
git merge -m "Merge upstream-jdk" FETCH_HEAD
- name: "Update Corretto version"
shell: bash
run: bash ./.github/scripts/update-version.sh $UPSTREAM_REMOTE
- name: "Push to the corretto-jdk"
run: git push origin $LOCAL_BRANCH
refresh-jdk:
runs-on: ubuntu-latest
name: "Update Corretto-24"
if: github.repository_owner == 'corretto'
steps:
- name: "Checkout code"
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ env.LOCAL_BRANCH }}
- name: "Configure the user"
run: |
git config user.email "[email protected]"
git config user.name "corretto-github-robot"
- name: "Merge openjdk/jdk:jdk24 to the corretto-24:develop"
run: |
git fetch $UPSTREAM_REMOTE jdk24 || exit 1
git merge -m "Merge upstream-jdk" FETCH_HEAD
- name: "Update Corretto version"
shell: bash
run: bash ./.github/scripts/update-version.sh $UPSTREAM_REMOTE
- name: "Push to the corretto-24"
run: git push origin $LOCAL_BRANCH

0 comments on commit 4795b14

Please sign in to comment.