From d40aaaf45bca138bc2367c78120051f4278ecccd Mon Sep 17 00:00:00 2001 From: notohh Date: Thu, 5 Oct 2023 16:53:48 -0400 Subject: [PATCH] ci: init flake.lock update / fmt --- .forgejo/workflows/flake-lock-update.yml | 21 +++++++++++++++++++++ .forgejo/workflows/fmt.yml | 11 +++++++++++ 2 files changed, 32 insertions(+) diff --git a/.forgejo/workflows/flake-lock-update.yml b/.forgejo/workflows/flake-lock-update.yml index e69de29..1af2b25 100644 --- a/.forgejo/workflows/flake-lock-update.yml +++ b/.forgejo/workflows/flake-lock-update.yml @@ -0,0 +1,21 @@ +on: + workflow_dispatch: + schedule: + - cron: "0 4 1 * *" +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: install nix action + uses: https://github.com/DeterminateSystems/nix-installer-action@main + with: + github-token: ${{ secrets.GH_TOKEN }} + - name: update flake.lock + uses: DeterminateSystems/update-flake-lock@v20 + with: + pr-title: "flake.lock: Update" + pr-labels: | + nix + dependencies + automated diff --git a/.forgejo/workflows/fmt.yml b/.forgejo/workflows/fmt.yml index e69de29..1856fa5 100644 --- a/.forgejo/workflows/fmt.yml +++ b/.forgejo/workflows/fmt.yml @@ -0,0 +1,11 @@ +on: [push] +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: install nix action + uses: https://github.com/DeterminateSystems/nix-installer-action@main + with: + github-token: ${{ secrets.GH_TOKEN }} + - run: nix run nixpkgs#alejandra -- -c . \ No newline at end of file