Skip to content

Commit

Permalink
UML-3762: ensure end of workflow runs (#2998)
Browse files Browse the repository at this point in the history
* UML-3762: ensure end of workflow runs

* update name

---------

Co-authored-by: Nick Davis <[email protected]>
  • Loading branch information
jay-whitwell and nickdavis2001 authored Dec 12, 2024
1 parent 60a4906 commit 0370dee
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/path-to-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,18 @@ jobs:
name: end of workflow
runs-on: ubuntu-latest
needs:
- code_coverage
- slack_notify
- production_health_check
- workflow_variables
- slack_notify
steps:
- name: workflow has ended without issue
- name: workflow has ended
run: |
echo "Deployment to production successful"
echo "Tag Used: main-${{ needs.workflow_variables.outputs.semver_tag }}"
echo "URL: https://use-lasting-power-of-attorney.service.gov.uk"
if ${{ contains(needs.slack_notify.result, 'success') }}; then
echo "Deployment to production successful"
echo "Tag Used: main-${{ needs.workflow_variables.outputs.semver_tag }}"
echo "URL: https://use-lasting-power-of-attorney.service.gov.uk
exit 0
else
echo "Deployment to production failed"
exit 1
fi
if: always()

0 comments on commit 0370dee

Please sign in to comment.