-
Notifications
You must be signed in to change notification settings - Fork 6
32 lines (32 loc) · 1.12 KB
/
refresh-jdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: "Refresh jdk23 from Upstream"
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
env:
UPSTREAM_REMOTE: https://github.com/openjdk/jdk.git
LOCAL_BRANCH: develop
jobs:
refresh-jdk:
runs-on: ubuntu-latest
name: "Update Corretto-23"
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:jdk23 to the corretto-23:develop"
run: |
git fetch $UPSTREAM_REMOTE jdk23 || 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-23"
run: git push origin $LOCAL_BRANCH