Skip to content

Commit

Permalink
.github: Add workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin authored and github-actions[bot] committed Jan 11, 2025
1 parent baab6ce commit e2efb2d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Rebase branches against NetBSD

on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:

jobs:
rebase:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
branch:
- feature/macos/trunk
- feature/miscfix/trunk
- feature/pbulk/trunk
- feature/pbulkmulti/trunk
- feature/performance/trunk
- trunk

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure github-actions bot
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Fetch NetBSD/pkgsrc.git
run: |
git remote add netbsd https://github.com/NetBSD/pkgsrc.git
git fetch netbsd
- name: Rebase ${{ matrix.branch }}
run: |
git checkout ${{ matrix.branch }}
git rebase netbsd/trunk
- name: Push ${{ matrix.branch }}
run: |
git push --force origin ${{ matrix.branch }}

0 comments on commit e2efb2d

Please sign in to comment.