Skip to content

Commit 12eedc0

Browse files
committed
Update the Teerraform
Signed-off-by: Stephen Williams <stephenw@mindpointgroup.com>
1 parent b36c983 commit 12eedc0

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/export_badges_private.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,27 @@ jobs:
5858
##################################################
5959
6060
# Windows GPO Pipeline Badge
61+
echo "Checking repo_short: $repo_short" # Debugging step
6162
if [[ "$repo_short" == Private-Windows-* ]]; then
63+
echo "Repo matches Private-Windows-* pattern" # Debugging step
64+
65+
# Fetch the status of the pipeline run
6266
status=$(gh run list -R "${{ inputs.repo_name }}" --workflow="main_pipeline_validation_gpo.yml" --json status,conclusion --jq '.[0] | .status + ":" + .conclusion' || echo "unknown:unknown")
67+
echo "Fetched status: $status" # Debugging step
68+
69+
# Set the badge color based on the status
6370
if [[ "$status" == "completed:success" ]]; then
64-
color=brightgreen; msg=Passing
71+
color=brightgreen
72+
msg=Passing
6573
elif [[ "$status" == "completed:failure" ]]; then
66-
color=red; msg=Failing
74+
color=red
75+
msg=Failing
6776
else
68-
color=lightgrey; msg=Unknown
77+
color=lightgrey
78+
msg=Unknown
6979
fi
80+
81+
# Output the badge JSON
7082
echo '{ "schemaVersion": 1, "label": "GPO Pipeline", "message": "'"$msg"'", "color": "'"$color"'" }' > $OUT_DIR/gpo.json
7183
else
7284
echo "Skipping GPO Pipeline badge — not a Windows repo"

0 commit comments

Comments
 (0)