Skip to content

Rebase branches against NetBSD #1

Rebase branches against NetBSD

Rebase branches against NetBSD #1

Workflow file for this run

name: Rebase trunk and feature trees against upstream
on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:
jobs:
rebase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git remote add netbsd https://github.com/NetBSD/pkgsrc.git
git fetch netbsd
rv=0
for b in mktool; do
branch="feature/${b}/trunk"
git checkout ${branch}
git rebase netbsd/trunk && git push --force origin ${branch} || rv=1
done
exit ${rv}