mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
workflow/update-flake-action: add GH_TOKEN to bypass GH limitation and directly run tests
This commit is contained in:
parent
2108922bdb
commit
43557f60d5
1 changed files with 5 additions and 7 deletions
12
.github/workflows/update.yml
vendored
12
.github/workflows/update.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue