From e2efb2dbb9d25eb46dc8bf01aae76e9a3fc29c78 Mon Sep 17 00:00:00 2001 From: Jonathan Perkin Date: Mon, 7 Oct 2024 11:44:30 +0100 Subject: [PATCH] .github: Add workflows. --- .github/workflows/rebase.yml | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/rebase.yml diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml new file mode 100644 index 000000000000..ccf5feb384b0 --- /dev/null +++ b/.github/workflows/rebase.yml @@ -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 }}