Test deployment_status #161
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run test file with command: | |
# act deployment_status -e test/act/deployment_status.json | |
name: Test deployment_status | |
on: deployment_status | |
jobs: | |
notify: | |
name: Notify LaunchDarkly of deployments | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Notify | |
uses: ./ | |
with: | |
access-token: ${{ secrets.ACCESS_TOKEN }} | |
base-uri: 'https://ld-stg.launchdarkly.com' | |
project-key: default | |
environment-key: ${{ github.event.deployment_status.environment }} | |
application-key: 'deployment-status-workflow' | |
version: ${{ github.event.deployment.sha }} | |
status: ${{ github.event.deployment_status.state }} | |
event-time: ${{ github.event.deployment_status.created_at }} | |
event-metadata: ' | |
{ | |
"actor": "${{ github.triggering_actor }}", | |
"ref_name": "${{ github.ref_name }}", | |
"ref_type": "${{ github.ref_type }}" | |
}' |