mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 11:30:06 +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
|
name: update-flake-lock
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch: # allows manual triggering
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 12 * * SAT" # runs weekly on Saturday at noon
|
- cron: "0 12 * * SAT" # runs weekly on Saturday at noon
|
||||||
|
|
||||||
|
@ -9,14 +9,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v20
|
uses: DeterminateSystems/nix-installer-action@v1
|
||||||
with:
|
|
||||||
extra_nix_config: |
|
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Update flake.lock
|
- name: Update flake.lock
|
||||||
id: update
|
id: update
|
||||||
uses: DeterminateSystems/update-flake-lock@v16
|
uses: DeterminateSystems/update-flake-lock@v20
|
||||||
with:
|
with:
|
||||||
pr-title: "Update flake.lock"
|
pr-title: "Update flake.lock"
|
||||||
|
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue