commit 6dd44e8a69929c6a038473b7ead6ed798f74066b Author: Jake Hillion Date: Wed Oct 23 23:19:08 2024 +0100 gitea-actions: add rebase nixos-unstable action 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