1fcada4536
Sync less regularly since upstream repo is updated seldom
31 lines
780 B
YAML
31 lines
780 B
YAML
name: Sync Upstream (12h)
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * 0"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout fork
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
ref: surf-webkit2
|
|
|
|
- name: Add upstream remote
|
|
run: |
|
|
git remote add upstream https://git.suckless.org/surf || true
|
|
git fetch upstream
|
|
|
|
- name: Merge upstream into surf-webkit2
|
|
run: |
|
|
git config user.name "gitea-runner[bot]"
|
|
git config user.email "gitea-runner[bot]@noreply.erickahmed.com"
|
|
git merge upstream/surf-webkit2 --strategy-option ours --no-edit || true
|
|
|
|
- name: Push merged branch
|
|
run: |
|
|
git push origin surf-webkit2 |