From fa55167f13a086d0f8fcc4dba7ab51efc6306c75 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 7 Oct 2022 17:22:39 -0700 Subject: ci: add GitHub action to update flakes and dependabot --- .github/dependabot.yml | 6 ++++++ .github/workflows/update.yaml | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/update.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8c139c7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml new file mode 100644 index 0000000..7da6c2a --- /dev/null +++ b/.github/workflows/update.yaml @@ -0,0 +1,22 @@ +name: update-flake-lock +on: + workflow_dispatch: + schedule: + - cron: '0 6 * * *' + +jobs: + update-flake-lock: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install Nix + uses: cachix/install-nix-action@v17 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Update flake.lock + id: update-flake-lock + uses: DeterminateSystems/update-flake-lock@v14 + with: + token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} -- cgit 1.4.1