workflow/update-flake-action: add GH_TOKEN to bypass GH limitation and directly run tests

This commit is contained in:
Gaetan Lepage 2023-08-28 10:54:18 +02:00 committed by Gaétan Lepage
parent 2108922bdb
commit 43557f60d5

View file

@ -1,6 +1,6 @@
name: update-flake-lock
on:
workflow_dispatch:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 12 * * SAT" # runs weekly on Saturday at noon
@ -9,14 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
uses: DeterminateSystems/nix-installer-action@v1
- name: Update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@v16
uses: DeterminateSystems/update-flake-lock@v20
with:
pr-title: "Update flake.lock"
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}