Skip to content

Commit

Permalink
[fix][ci] avoid early exit of script for failure case (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddvenk authored Feb 5, 2024
1 parent 557efd6 commit e3089d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish-job-success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
run: |
workflow_name=$(echo "$WORKFLOW_NAME" | tr -d ' ')
metric_name="${REPO_NAME}-${workflow_name}-Failure"
[[ "$CONCLUSION" == "success" ]]
failedBuild=$?
failedBuild=$([ "$CONCLUSION" == "success" ]; echo $?)
aws cloudwatch put-metric-data --namespace GithubCI \
--metric-name "$metric_name" \
--value $failedBuild \
Expand Down

0 comments on commit e3089d6

Please sign in to comment.