Skip to content

Commit

Permalink
fixup fixup
Browse files Browse the repository at this point in the history
If I use that exact formulation in the YAML string literal block which
the caller workflow sets via `with.run` this becomes `inputs.run` in the
reusable action. When this gets turned into the
`NEXTSTRAIN_BUILD_COMMAND` env variable via `${{ inputs.run }}`, the
[actions docs
indicate](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#literals)
that we "must use single quotes (') around the string" (but we've got a
literal block, which seems to meet this requirement) and to "use a
literal single quote, escape the literal single quote using an
additional single quote ('')"
  • Loading branch information
jameshadfield committed Mar 4, 2025
1 parent a6621e3 commit 3047f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/phylogenetic-ncbi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ jobs:
if [[ "$BUILDS" = "h5n1-d1.1" ]]; then
config+=(
builds="[{'subtype': ['h5n1-d1.1'],'segment': ['genome']}]"
builds="[{''subtype'': [''h5n1-d1.1''],''segment'': [''genome'']}]"
)
else if [[ "$BUILDS" = "h5n1-cattle-outbreak" ]]; then
config+=(
builds="[{'subtype': ['h5n1-cattle-outbreak'],'segment': ['genome','pb2','pb1','pa','ha','np','na','mp','ns']}]"
builds="[{''subtype'': [''h5n1-cattle-outbreak''],''segment'': [''genome'',''pb2'',''pb1'',''pa'',''ha'',''np'',''na'',''mp'',''ns'']}]"
)
fi;
Expand Down

0 comments on commit 3047f16

Please sign in to comment.