Update nix-flake-update.yml
This commit is contained in:
parent
b31f32d57c
commit
417eb39099
1 changed files with 15 additions and 32 deletions
47
.github/workflows/nix-flake-update.yml
vendored
47
.github/workflows/nix-flake-update.yml
vendored
|
@ -1,38 +1,21 @@
|
||||||
name: "Update flakes"
|
name: update-flake-lock
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
workflow_dispatch: # allows manual triggering
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '10 4 * * 0'
|
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
createPullRequest:
|
lockfile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
- uses: cachix/install-nix-action@v20
|
uses: actions/checkout@v2
|
||||||
|
- name: Install Nix
|
||||||
|
uses: DeterminateSystems/nix-installer-action@v1
|
||||||
|
- name: Update flake.lock
|
||||||
|
uses: DeterminateSystems/update-flake-lock@vX
|
||||||
with:
|
with:
|
||||||
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210604_8e6ee1b/install
|
pr-title: "Update flake.lock" # Title of PR to be created
|
||||||
extra_nix_config: |
|
pr-labels: | # Labels to be set on the PR
|
||||||
experimental-features = nix-command flakes
|
dependencies
|
||||||
- name: Make changes to pull request
|
automated
|
||||||
run: nix flake update
|
|
||||||
- name: Create Pull Request
|
|
||||||
id: cpr
|
|
||||||
uses: peter-evans/create-pull-request@v5
|
|
||||||
with:
|
|
||||||
commit-message: Update flakes
|
|
||||||
committer: GitHub <noreply@github.com>
|
|
||||||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
|
||||||
signoff: false
|
|
||||||
branch: flake-updates
|
|
||||||
delete-branch: true
|
|
||||||
title: 'Update flakes'
|
|
||||||
body: |
|
|
||||||
Update report
|
|
||||||
- Updated with *today's* date
|
|
||||||
- Auto-generated by [create-pull-request][1]
|
|
||||||
[1]: https://github.com/peter-evans/create-pull-request
|
|
||||||
- name: Check outputs
|
|
||||||
run: |
|
|
||||||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
|
||||||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue