Skip to content

Commit e7ad50c

Browse files
Adding failure message in the case the deployment fails (no need for success)
1 parent 5cd093f commit e7ad50c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/infrastructure.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,12 @@ jobs:
168168
text:
169169
type: "mrkdwn"
170170
text: "> Check the logs for <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|details>."
171+
172+
- name: Update deployment status (failure)
173+
if: failure()
174+
uses: chrnorm/deployment-status@v2
175+
with:
176+
token: '${{ github.token }}'
177+
environment-url: "https://${{ needs.deploy.outputs.fqdn }}"
178+
state: 'failure'
179+
deployment-id: ${{ needs.deploy.outputs.deployment_id }}

0 commit comments

Comments
 (0)