From 6dd44e8a69929c6a038473b7ead6ed798f74066b Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 23 Oct 2024 23:19:08 +0100 Subject: [PATCH] gitea-actions: add rebase nixos-unstable action --- .gitea/workflows/rebase-unstable.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/rebase-unstable.yml diff --git a/.gitea/workflows/rebase-unstable.yml b/.gitea/workflows/rebase-unstable.yml new file mode 100644 index 000000000000..d0fad3990fd6 --- /dev/null +++ b/.gitea/workflows/rebase-unstable.yml @@ -0,0 +1,29 @@ +name: Rebase nixos-unstable on upstream + +on: + schedule: + - cron: '27 4/6 * * *' + +permissions: + contents: write + +jobs: + rebase-unstable: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: nixos-unstable + fetch-depth: 0 + - name: Pull from upstream + run: | + git remote add upstream https://github.com/NixOS/nixpkgs.git + git fetch upstream nixos-unstable + - name: Rebase onto upstream + run: | + git config --global user.email "nixpkgsupdater@noreply.gitea.hillion.co.uk" + git config --global user.name "Hillion nixpkgs Updater" + git rebase upstream/nixos-unstable + - name: Push result + run: git push --force