Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ jobs:
trigger_workflow: true
wait_workflow: true
propagate_failure: true
summarize: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ When deploying an app you may need to deploy additional services, this Github Ac
| `wait_workflow` | False | `true` | Wait for workflow to finish. |
| `comment_downstream_url` | False | `` | A comments API URL to comment the current downstream job URL to. Default: no comment |
| `comment_github_token` | False | `${{github.token}}` | token used for pull_request comments |
| `summarize` | False | `false` | Print downstream job URL and ID to workflow job summary |


## Example
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ inputs:
description: "The Github access token with access to the repository for comment URL. It is recommended you put this token under secrets."
required: false
default: ${{ github.token }}
summarize:
description: "Print downstream job URL and ID to workflow job summary. default: false"
required: false
outputs:
workflow_id:
description: The ID of the workflow that was triggered by this action
Expand Down
15 changes: 15 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ validate_args() {
wait_workflow=${INPUT_WAIT_WORKFLOW}
fi

summarize=false
if [ -n "${INPUT_SUMMARIZE}" ]
then
summarize=${INPUT_SUMMARIZE}
fi

if [ -z "${INPUT_OWNER}" ]
then
echo "Error: Owner is a required argument."
Expand Down Expand Up @@ -180,6 +186,15 @@ wait_for_workflow_to_finish() {
comment_downstream_link ${last_workflow_url}
fi

if [ "${summarize}" = true ]
then
echo "| | |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
echo "| Workflow URL | <${last_workflow_url}> |" >> $GITHUB_STEP_SUMMARY
echo "| Workflow ID | ${last_workflow_id} |" >> $GITHUB_STEP_SUMMARY
echo "| | |" >> $GITHUB_STEP_SUMMARY
fi

conclusion=null
status=

Expand Down