Skip to content

Post-Deployment Actions #10

Post-Deployment Actions

Post-Deployment Actions #10

Workflow file for this run

name: Post-Deployment Actions
on:
deployment_status:
states: [success]
jobs:
post-deploy:
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success' && github.event.deployment.payload.serviceId == 'c6252e1b-b2bd-4d39-bdc1-d6621abe6e2a'
steps:
- name: Debug - Print github.event object
run: |
echo "github.event context:"
echo '${{ toJSON(github.event) }}'
# Only run if this is a production environment deployment that succeeded
- name: Run post-deploy actions
run: |
echo "deployment succeeded"