File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -720,13 +720,27 @@ jobs:
720720 version : ${{ env.PIPELINES_CLI_VERSION }}
721721 PIPELINES_GRUNTWORK_READ_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).gruntwork_read }}
722722
723+ - name : Configure code auth
724+ uses : ./pipelines-actions/.github/actions/pipelines-code-auth
725+ with :
726+ PIPELINES_GRUNTWORK_READ_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).gruntwork_read }}
727+ PIPELINES_CUSTOMER_ORG_READ_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).customer_org_read }}
728+
729+ - name : Pipelines After Hooks
730+ id : hooks_after
731+ uses : ./pipelines-actions/.github/actions/pipelines-hooks-after
732+ with :
733+ GH_ARTIFACT_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).customer_org_read }}
734+
723735 - name : Check Status
736+ if : always()
724737 shell : bash
725738 working-directory : ./infra-live-repo
726739 env :
727740 API_BASE_URL : ${{ inputs.api_base_url }}
728741 GH_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).propose_infra_change }}
729742 GH_ARTIFACT_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).propose_infra_change }}
743+ JOB_FAILED : ${{ failure() }}
730744 run : |
731745 pipelines status-update finalize \
732746 --working-directory . \
@@ -740,7 +754,7 @@ jobs:
740754
741755 printf '%.s─' $(seq 1 "$(tput -T dumb cols)")
742756 echo " "
743- if [[ "$pipeline_status" == "success" ]]; then
757+ if [[ "$JOB_FAILED" != "true" && "$ pipeline_status" == "success" ]]; then
744758 echo -e "✅ \033[1;32mPipeline Passed\033[0m"
745759 exit 0
746760 else
Original file line number Diff line number Diff line change @@ -335,13 +335,27 @@ jobs:
335335 version : ${{ env.PIPELINES_CLI_VERSION }}
336336 PIPELINES_GRUNTWORK_READ_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).gruntwork_read }}
337337
338+ - name : Configure code auth
339+ uses : ./pipelines-actions/.github/actions/pipelines-code-auth
340+ with :
341+ PIPELINES_GRUNTWORK_READ_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).gruntwork_read }}
342+ PIPELINES_CUSTOMER_ORG_READ_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).customer_org_read }}
343+
344+ - name : Pipelines After Hooks
345+ id : hooks_after
346+ uses : ./pipelines-actions/.github/actions/pipelines-hooks-after
347+ with :
348+ GH_ARTIFACT_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).customer_org_read }}
349+
338350 - name : Check Status
351+ if : always()
339352 shell : bash
340353 working-directory : ./infra-live-repo
341354 env :
342355 API_BASE_URL : ${{ inputs.api_base_url }}
343356 GH_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).propose_infra_change }}
344357 GH_ARTIFACT_TOKEN : ${{ fromJson(steps.pipelines-tokens.outputs.tokens_json).propose_infra_change }}
358+ JOB_FAILED : ${{ failure() }}
345359 run : |
346360 pipelines status-update finalize \
347361 --working-directory . \
@@ -355,7 +369,7 @@ jobs:
355369
356370 printf '%.s─' $(seq 1 "$(tput -T dumb cols)")
357371 echo " "
358- if [[ "$pipeline_status" == "success" ]]; then
372+ if [[ "$JOB_FAILED" != "true" && "$ pipeline_status" == "success" ]]; then
359373 echo -e "✅ \033[1;32mPipeline Passed\033[0m"
360374 exit 0
361375 else
You can’t perform that action at this time.
0 commit comments