Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/sync-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Sync Fork

on:
schedule:
- cron: '0 0 16 * *' # Runs daily at midnight UTC
workflow_dispatch: # Allows manual triggering
- cron: '0 0 16 * *' # every 16th of each month
workflow_dispatch:

jobs:
sync:
Expand All @@ -15,16 +15,20 @@ jobs:
- name: Checkout your forked repository
uses: actions/checkout@v4

- name: Add upstream remote
run: git remote add upstream https://github.com/<original-owner>/<original-repo>.git # Replace with original details
- name: Set up Git
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"

- name: Fetch upstream changes
run: git fetch upstream
- name: fetch upstream changes remote
run: |
git remote add upstream https://github.com/getsentry/self-hosted.git
git fetch upstream

- name: Merge upstream into your branch
run: |
git checkout master
git rebase upstream/master

- name: Push updates to your GitHub fork
run: git push origin master # Or your desired branch
run: git push origin master