Skip to content

Commit

Permalink
github workflow autorebase upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
jixiuf authored and github-actions[bot] committed Jan 29, 2025
1 parent d225d2f commit 4f1eb7b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# https://github.com/imba-tjd/rebase-upstream-action/blob/master/action.yml#L20C3-L20C7
# .github/workflows/sync.yml
name: Rebase Upstream
on:
schedule:
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
- cron: "20 20 * * *" # run once a day
# - cron: "0 0 * * 0" # run once a week
workflow_dispatch: # run manually

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
# https://github.com/actions/checkout
fetch-depth: 0 # greater than the number of commits you made
- uses: jixiuf/rebase-upstream-action@master
with: # all args are optional
upstream: meow-edit/meow
branch: master
depth: 0

# with: # all args are optional
# upstream: <user>/<repo>
# branch: master

0 comments on commit 4f1eb7b

Please sign in to comment.