From a222ce39079a29bafdfc62b4b2e9ec54bb333687 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 24 Oct 2024 23:09:29 +0200 Subject: [PATCH] ci: update flake file automatically --- .github/workflows/flake.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/flake.yml diff --git a/.github/workflows/flake.yml b/.github/workflows/flake.yml new file mode 100644 index 0000000..1047a6f --- /dev/null +++ b/.github/workflows/flake.yml @@ -0,0 +1,45 @@ +--- +name: flake + +"on": + workflow_dispatch: + schedule: + - cron: "0 8 * * 1" + +permissions: + contents: write + +jobs: + flake: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + id: source + uses: actions/checkout@v4 + with: + token: ${{ secrets.BOT_ACCESS_TOKEN }} + + - name: Install nix + id: nix + uses: cachix/install-nix-action@v30 + + - name: Update flake + id: flake + run: nix flake update + + - name: Source rebase + id: rebase + run: git pull --autostash --rebase + + - name: Commit changes + uses: EndBug/add-and-commit@v9 + with: + author_name: GitHub Actions + author_email: github@webhippie.de + add: flake.lock + message: "chore(flake): updated lockfile [skip ci]" + push: true + commit: --signoff + +...