summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorseth <[email protected]>2023-09-06 17:03:55 -0400
committerseth <[email protected]>2023-09-07 13:13:55 -0400
commitec42da1b1bdf9d6fd7b05b66b4bc217c1b804147 (patch)
treec2dd856e3c78f41ad097108527779cd3fd9f1090 /.github
parent43a54b71cd98f5e59a6a7d703b1fb00271ac6639 (diff)
ci: move back to garnix
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-inputs.yaml37
-rw-r--r--.github/workflows/update-lock.yaml34
2 files changed, 34 insertions, 37 deletions
diff --git a/.github/workflows/update-inputs.yaml b/.github/workflows/update-inputs.yaml
deleted file mode 100644
index dc6b5f1..0000000
--- a/.github/workflows/update-inputs.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: update inputs
-
-on:
- #schedule:
- # # run every saturday
- # - cron: "0 0 * * 6"
- workflow_dispatch:
-
-permissions:
- contents: write
- pull-requests: write
-
-jobs:
- update-lock:
- runs-on: ubuntu-latest
-
- steps:
- - name: checkout repo
- uses: actions/checkout@v4
-
- - uses: cachix/install-nix-action@v23
- with:
- github_access_token: ${{ github.token }}
-
- - uses: DeterminateSystems/update-flake-lock@v20
- id: update
- with:
- commit-msg: "flake: update inputs"
- pr-title: "flake: update all inputs"
- nix-options: "--accept-flake-config"
- token: ${{ github.token }}
-
- - name: auto-merge pull request
- run: gh pr merge --auto --rebase "$PR_ID"
- env:
- GITHUB_TOKEN: ${{ github.token }}
- PR_ID: ${{ steps.update.outputs.pull-request-number }}
diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml
new file mode 100644
index 0000000..9e3301d
--- /dev/null
+++ b/.github/workflows/update-lock.yaml
@@ -0,0 +1,34 @@
+name: update flake lock
+
+on:
+ schedule:
+ # run every saturday
+ - cron: "0 0 * * 6"
+ workflow_dispatch:
+
+permissions:
+ contents: write
+ pull-requests: write
+
+jobs:
+ update:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ - uses: DeterminateSystems/nix-installer-action@main
+
+ - name: update lockfile
+ uses: DeterminateSystems/update-flake-lock@v20
+ id: update
+ with:
+ commit-msg: "flake: update inputs"
+ pr-title: "flake: update inputs"
+ token: ${{ github.token }}
+
+ - name: enable auto-merge
+ shell: bash
+ run: gh pr merge --auto --rebase "$PR_ID"
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ PR_ID: ${{ steps.update.outputs.pull-request-number }}