Skip to content
Open
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
33 changes: 33 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update Fork

on:
schedule:
- cron: '0 0 * * 1' # Runs every Monday at midnight
workflow_dispatch:

jobs:
update-fork:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'

- name: Add upstream remote
run: git remote add upstream https://github.com/original-owner/original-repo.git

- name: Fetch upstream
run: git fetch upstream

- name: Merge upstream changes
run: git merge upstream/main

- name: Push changes
run: git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}