This repository has been archived by the owner on Oct 21, 2023. It is now read-only.
Upstream Sync #25
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
name: 'Upstream Sync' | |
on: | |
schedule: | |
- cron: '5 2 * * *' | |
workflow_dispatch: | |
jobs: | |
sync_latest_from_upstream: | |
runs-on: ubuntu-latest | |
name: Sync latest commits from upstream repo | |
steps: | |
- name: Checkout target repo | |
uses: actions/checkout@v3 | |
with: | |
ref: jdk21-fix-8240567 | |
fetch-depth: '0' | |
- name: Sync upstream changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git remote add upstream https://github.com/openjdk/jdk21.git | |
git fetch upstream | |
git merge upstream/master | |
git push | |
build: | |
# The GitHub trigger "push" does not trigger if a push happens inside a workflow. | |
# Thus, we manually trigger building | |
needs: sync_latest_from_upstream | |
uses: ./.github/workflows/main.yml | |
secrets: inherit |