libcamera/.forgejo/workflows/sync-with-upstream.yaml
Vasiliy Doylov b3b25d9a34
Some checks failed
PostmarketOS Build / Clean (push) Blocked by required conditions
PostmarketOS Build / Prepare (push) Successful in 3s
PostmarketOS Build / Build for aarch64 (push) Has been cancelled
PostmarketOS Build / Build for x86_64 (push) Has been cancelled
CI: Add local forgejo CI
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
2025-06-17 02:27:38 +03:00

27 lines
735 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:
depth: 0
token: ${{ secrets.PUSH_TOKEN }}
- name: Add upstream remote
run: git remote add upstream ${{ github.server_url }}/mirror/libcamera
- name: Fetch upstream changes
run: git fetch upstream
- name: Checkout to branch
run: git checkout ${{ github.ref_name }}
- name: Rebase changes
run: git rebase upstream/master || git status
- name: Push changes
run: git push --force