forked from nesbox/TIC-80
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d348ab1
commit fa1503b
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Sync with upstream | ||
|
||
on: | ||
schedule: | ||
- cron: '0 * * * *' | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main branch of fork | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: 'main' | ||
fetch-depth: 0 | ||
token: ${{ secrets.REPO_SYNC_TOKEN }} | ||
|
||
- name: Setup Git identity | ||
run: | | ||
git config user.name 'GitHub Actions' | ||
git config user.email '[email protected]' | ||
- name: Add remote upstream | ||
run: git remote add upstream https://github.com/nesbox/TIC-80.git | ||
|
||
- name: Fetch all history for all branches | ||
run: | | ||
git fetch --all | ||
- name: Rebase changes | ||
run: git rebase upstream/main | ||
|
||
- name: Push changes | ||
run: git push origin main --force-with-lease | ||
|