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 89092f6
Show file tree
Hide file tree
Showing 3 changed files with 13 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 ]]
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 89092f6

Please sign in to comment.