mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -06:00
support hosts arg for cron job
This commit is contained in:
parent
5e29472b29
commit
3f236615ff
1 changed files with 6 additions and 3 deletions
9
.github/workflows/update.yml
vendored
9
.github/workflows/update.yml
vendored
|
@ -13,6 +13,9 @@ on:
|
||||||
# At minute 00:00 on Monday, Wednesday, and Friday.
|
# At minute 00:00 on Monday, Wednesday, and Friday.
|
||||||
- cron: 0 0 * * 1,3,5
|
- cron: 0 0 * * 1,3,5
|
||||||
|
|
||||||
|
env:
|
||||||
|
hosts: ${{ github.event_name == 'schedule' && 'othalan,algiz' || github.event.inputs.hosts }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
@ -58,7 +61,7 @@ jobs:
|
||||||
nix run .
|
nix run .
|
||||||
--
|
--
|
||||||
cache
|
cache
|
||||||
--host,="${{ inputs.hosts }}"
|
--host,="${{ env.hosts }}"
|
||||||
--flake .
|
--flake .
|
||||||
--debug
|
--debug
|
||||||
--
|
--
|
||||||
|
@ -101,7 +104,7 @@ jobs:
|
||||||
nix run .
|
nix run .
|
||||||
--
|
--
|
||||||
ci update
|
ci update
|
||||||
--host,="${{ inputs.hosts }}"
|
--host,="${{ env.hosts }}"
|
||||||
--flake .
|
--flake .
|
||||||
--debug
|
--debug
|
||||||
--
|
--
|
||||||
|
@ -109,7 +112,7 @@ jobs:
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
echo "# system diffs" >> $GITHUB_STEP_SUMMARY
|
echo "# system diffs" >> $GITHUB_STEP_SUMMARY
|
||||||
hosts="${{ inputs.hosts }}"
|
hosts="${{ env.hosts }}"
|
||||||
for host in ${hosts//,/ }; do
|
for host in ${hosts//,/ }; do
|
||||||
echo "## $host" >> $GITHUB_STEP_SUMMARY
|
echo "## $host" >> $GITHUB_STEP_SUMMARY
|
||||||
nix run "nixpkgs#nvd" -- --color always diff ./$host-current ./$host-updated >> $host-summary.md
|
nix run "nixpkgs#nvd" -- --color always diff ./$host-current ./$host-updated >> $host-summary.md
|
||||||
|
|
Loading…
Reference in a new issue