Skip to content

Commit

Permalink
inputs is {bool}
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Jul 15, 2024
1 parent 3ac98b9 commit e827e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/call-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

env:
# `inputs` are missing when run "scheduled", so set defaults
defaults: '{ "main": "true", "nixos-24.05": "true" }'
defaults: '{ "main": true, "nixos-24.05": true }'

jobs:
setup-matrix:
Expand All @@ -30,7 +30,7 @@ jobs:
id: selected
run: |
# Combine $defaults & $inputs, then select keys with the value "true"
query='.[0] * .[1] | map_values(select(. == "true")) | keys'
query='.[0] * .[1] | map_values(select(. == true)) | keys'
selected=$(echo "[ $defaults, $inputs ]" | jq -c "$query")
echo "branches: $selected"
echo "branches=$selected" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit e827e3d

Please sign in to comment.