aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-02-27 13:13:05 +0100
committerGitHub <noreply@github.com>2022-02-27 13:13:05 +0100
commit0a0ec00d683b8faa232e8784e6f36251c8c78097 (patch)
tree247355d692882e90a70cff601cf0fe0780030fec /.github/workflows
parentdocs(changelog): init `nix` support (diff)
downloadsl0ppij-0a0ec00d683b8faa232e8784e6f36251c8c78097.tar.gz
sl0ppij-0a0ec00d683b8faa232e8784e6f36251c8c78097.tar.xz
sl0ppij-0a0ec00d683b8faa232e8784e6f36251c8c78097.zip
ci(add): update flake lock action (#1135)
as discussed in #1131 Add a github action that creating a weekly pr with updated flake inputs.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update-flake-lock.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml
new file mode 100644
index 00000000..0c17817b
--- /dev/null
+++ b/.github/workflows/update-flake-lock.yml
@@ -0,0 +1,22 @@
+name: update-flake-lock
+on:
+ workflow_dispatch: # allows manual triggering
+ schedule:
+ - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
+
+jobs:
+ lockfile:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Install Nix
+ uses: cachix/install-nix-action@v14
+ with:
+ install_url: https://nixos-nix-install-tests.cachix.org/serve/vij683ly7sl95nnhb67bdjjfabclr85m/install
+ install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
+ extra_nix_config: |
+ experimental-features = nix-command flakes
+ access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
+ - name: Update flake.lock
+ uses: DeterminateSystems/update-flake-lock@v6