mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
update github action to also update private flake
This commit is contained in:
parent
7769727634
commit
5f3869dfd2
3 changed files with 27 additions and 12 deletions
19
.github/workflows/upgrade-flakes.yml
vendored
19
.github/workflows/upgrade-flakes.yml
vendored
|
|
@ -4,6 +4,10 @@ on:
|
|||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '51 2 * * 0'
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
createPullRequest:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -14,9 +18,12 @@ jobs:
|
|||
with:
|
||||
extra_nix_config: |
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Update flake.lock
|
||||
uses: DeterminateSystems/update-flake-lock@v24
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
pr-labels: |
|
||||
merge-queue
|
||||
- name: Update flakes
|
||||
run: |
|
||||
nix flake update
|
||||
pushd dev/private
|
||||
nix flake update
|
||||
popd
|
||||
nix run .#update-dev-private-narHash
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue