Repo Sync #8
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: Repo Sync | |
on: | |
push: | |
branches: | |
- default | |
paths: | |
- .github/workflows/repo-sync.yml | |
schedule: | |
- cron: '0 0 * * *' | |
permissions: | |
contents: write | |
jobs: | |
graal-master: | |
name: Keep graal/master in sync with upstream master | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout graal/master branch | |
uses: actions/checkout@v3 | |
with: | |
ref: graal/master | |
fetch-depth: 0 | |
- name: Echo issue repo and number | |
run: | | |
echo "issue-repo: graalvm/mandrel" | |
echo "issue-number: 649" | |
- name: Sync branch | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Foivos Zakkak through GH action" | |
git remote add upstream https://github.com/oracle/graal | |
git fetch upstream master | |
git merge --ff-only upstream/master | |
git push --quiet origin graal/master |