mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-21 01:39:39 +01:00
ci: schedule release flake lock updates (#7325)
Currently only running on the master branch. But, we can schedule on the release branch, as well. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
d400c36166
commit
951f0b30c5
1 changed files with 6 additions and 0 deletions
6
.github/workflows/update-flake.yml
vendored
6
.github/workflows/update-flake.yml
vendored
|
|
@ -9,6 +9,9 @@ jobs:
|
||||||
update:
|
update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name != 'schedule' || github.repository_owner == 'nix-community'
|
if: github.event_name != 'schedule' || github.repository_owner == 'nix-community'
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
branch: [master, release-25.05]
|
||||||
steps:
|
steps:
|
||||||
- name: Create GitHub App token
|
- name: Create GitHub App token
|
||||||
uses: actions/create-github-app-token@v2
|
uses: actions/create-github-app-token@v2
|
||||||
|
|
@ -31,6 +34,8 @@ jobs:
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ matrix.branch }}
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
- name: Update flake.lock
|
- name: Update flake.lock
|
||||||
|
|
@ -53,3 +58,4 @@ jobs:
|
||||||
|
|
||||||
[update-flake-lock]: https://github.com/DeterminateSystems/update-flake-lock
|
[update-flake-lock]: https://github.com/DeterminateSystems/update-flake-lock
|
||||||
[${{ github.run_id }}]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
[${{ github.run_id }}]: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
base-branch: ${{ matrix.branch }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue