Skip to content

Commit

Permalink
.github: Add workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin committed Oct 7, 2024
1 parent be6a609 commit be156df
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Rebase branches against NetBSD

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

jobs:
rebase:
runs-on: ubuntu-latest

strategy:
matrix:
branch: ["feature/mktool/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 be156df

Please sign in to comment.