libcamera/.forgejo/workflows/sync-with-upstream.yaml
Vasiliy Doylov ef921d590e
Some checks are pending
PostmarketOS Build / Prepare (push) Waiting to run
PostmarketOS Build / Build for aarch64 (push) Blocked by required conditions
PostmarketOS Build / Build for x86_64 (push) Blocked by required conditions
PostmarketOS Build / Clean (push) Blocked by required conditions
CI: Add local forgejo CI
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
2025-06-17 03:13:58 +03:00

30 lines
830 B
YAML

name: Sync fork with upstream
run-name: Sync fork with upstream
on:
schedule:
- cron: "@daily"
workflow_dispatch:
jobs:
sync:
name: Sync
runs-on: Misc
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PUSH_TOKEN }}
- name: Set git user
run: >
git config --global user.email "bot@mail.nekocwd.duckdns.org" &&
git config --global user.name "Rebase Bot"
- name: Add upstream remote
run: git remote add upstream ${{ github.server_url }}/mirror/libcamera
- name: Fetch upstream changes
run: git fetch upstream
- name: Rebase changes
run: git rebase upstream/master || git status
- name: Push changes
run: git push --force