mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 03:07:31 -06:00
add flake-input input to update workflow
This commit is contained in:
parent
16c41a0ddb
commit
f8fc879083
1 changed files with 6 additions and 1 deletions
7
.github/workflows/update.yml
vendored
7
.github/workflows/update.yml
vendored
|
@ -8,6 +8,10 @@ on:
|
||||||
required: true
|
required: true
|
||||||
default: "othalan,algiz"
|
default: "othalan,algiz"
|
||||||
type: string
|
type: string
|
||||||
|
flake-inputs:
|
||||||
|
description: "list of nix flake inputs"
|
||||||
|
default: ""
|
||||||
|
type: "string"
|
||||||
|
|
||||||
# schedule:
|
# schedule:
|
||||||
# # At minute 00:00 on Monday, Wednesday, and Friday.
|
# # At minute 00:00 on Monday, Wednesday, and Friday.
|
||||||
|
@ -15,6 +19,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
hosts: ${{ github.event_name == 'schedule' && 'othalan,algiz' || github.event.inputs.hosts }}
|
hosts: ${{ github.event_name == 'schedule' && 'othalan,algiz' || github.event.inputs.hosts }}
|
||||||
|
flake-inputs: ${{ github.event_name == 'flake-inputs' && '' || github.event.inputs.flake-inputs }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
@ -39,7 +44,7 @@ jobs:
|
||||||
|
|
||||||
- name: Update nix flake
|
- name: Update nix flake
|
||||||
run: |
|
run: |
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file "${{ env.flake-inputs }}"
|
||||||
printf '# Flake Lock\n\n```txt\n%s```\n' \
|
printf '# Flake Lock\n\n```txt\n%s```\n' \
|
||||||
"$(git show -s --format='%B')" \
|
"$(git show -s --format='%B')" \
|
||||||
>> $GITHUB_STEP_SUMMARY
|
>> $GITHUB_STEP_SUMMARY
|
||||||
|
|
Loading…
Reference in a new issue