Skip to content

Commit

Permalink
pathogen-repo-ci: Show pathogen workflow conclusions in the GitHub wo…
Browse files Browse the repository at this point in the history
…rkflow summary

A good suggestion by @joverlee521 in review.¹

¹ <#96 (comment)>
  • Loading branch information
tsibley committed Jun 14, 2024
1 parent e866040 commit efb5519
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pathogen-repo-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,14 @@ jobs:
phylogenetic: ${{ steps.phylogenetic.conclusion }}
nextclade: ${{ steps.nextclade.conclusion }}
run: |
# Show step conclusions.
# Show step conclusions in job logs…
echo "ingest $ingest"
echo "phylogenetic $phylogenetic"
echo "nextclade $nextclade"
# …and also in the workflow summary.
"$NEXTSTRAIN_GITHUB_DIR"/bin/interpolate-env < "$NEXTSTRAIN_GITHUB_DIR"/text-templates/pathogen-repo-ci.md > "$GITHUB_STEP_SUMMARY"
# Assert status; if we see at least one attempt, regardless of
# success/failure, we're good.
[[ $ingest != skipped || $phylogenetic != skipped || $nextclade != skipped ]]
5 changes: 4 additions & 1 deletion .github/workflows/pathogen-repo-ci.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,14 @@ jobs:
phylogenetic: ${{ steps.phylogenetic.conclusion }}
nextclade: ${{ steps.nextclade.conclusion }}
run: |
# Show step conclusions.
# Show step conclusions in job logs…
echo "ingest $ingest"
echo "phylogenetic $phylogenetic"
echo "nextclade $nextclade"

# …and also in the workflow summary.
"$NEXTSTRAIN_GITHUB_DIR"/bin/interpolate-env < "$NEXTSTRAIN_GITHUB_DIR"/text-templates/pathogen-repo-ci.md > "$GITHUB_STEP_SUMMARY"

# Assert status; if we see at least one attempt, regardless of
# success/failure, we're good.
[[ $ingest != skipped || $phylogenetic != skipped || $nextclade != skipped ]]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Executable scripts that are used in our workflows.
Text templates for messages and summaries in our workflows.

- [attach-aws-batch](text-templates/attach-aws-batch.md)
- [pathogen-repo-ci](text-templates/pathogen-repo-ci.md)


## Development tools for this repo itself
Expand Down
5 changes: 5 additions & 0 deletions text-templates/pathogen-repo-ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
| workflow | conclusion |
| ------------- | --------------- |
| ingest | ${ingest} |
| phylogenetic | ${phylogenetic} |
| nextclade | ${nextclade} |

0 comments on commit efb5519

Please sign in to comment.