meta: tweak update-flake-lock action

This commit is contained in:
Max Headroom 2022-08-27 02:41:30 +02:00 committed by GitHub
parent 6a01be61bf
commit 1b0e696270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}"