meta: tweak update-flake-lock action
This commit is contained in:
parent
6a01be61bf
commit
1b0e696270
1 changed files with 7 additions and 3 deletions
10
.github/workflows/update-flake-lock.yaml
vendored
10
.github/workflows/update-flake-lock.yaml
vendored
|
@ -1,8 +1,8 @@
|
||||||
name: update-flake-lock
|
name: Update flake.lock
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # allows manual triggering
|
workflow_dispatch: # allows manual triggering
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
|
- cron: '0 0 * * 0'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lockfile:
|
lockfile:
|
||||||
|
@ -12,7 +12,11 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v16
|
uses: cachix/install-nix-action@v16
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y%m%d')"
|
||||||
- name: Update flake.lock
|
- name: Update flake.lock
|
||||||
uses: DeterminateSystems/update-flake-lock@v13
|
uses: DeterminateSystems/update-flake-lock@v13
|
||||||
with:
|
with:
|
||||||
pr-title: "Update flake.lock" # Title of PR to be created
|
pr-title: "Updates ${{ steps.date.outputs.date }}"
|
||||||
|
branch: "updates-${{ steps.date.outputs.date }}"
|
||||||
|
|
Loading…
Reference in a new issue