@@ -20,6 +20,10 @@ inputs:
2020 description : ' The deployer name who created the event'
2121 required : false
2222 default : ${{ github.actor }}
23+ deploy_url :
24+ description : ' The deploy url that OpsLevel points to'
25+ required : false
26+ default : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
2327 description :
2428 description : ' The description or release notes for the event'
2529 required : false
5054 integration_url : ${{ inputs.integration_url }}
5155 deduplication_id : ${{ inputs.deduplication_id }}
5256 deployer_email : ${{ inputs.deployer_email }}
57+ deploy_url : ${{ inputs.deploy_url }}
5358 deployer_name : ${{ inputs.deployer_name }}
5459 description : ${{ inputs.description }}
5560 environment : ${{ inputs.environment }}
@@ -66,23 +71,16 @@ runs:
6671 run : |
6772 echo ::add-mask::$INTEGRATION_URL
6873 cat <<EOF > data.yaml
69- service: "$SERVICE "
70- description" : "$DESCRIPTION "
71- environment" : "$ENVIRONMENT "
72- deploy-number" : "$NUMBER "
73- deploy-url" : "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
74- dedup-id" : "$DEDUPLICATION_ID "
74+ service: "${{ inputs.service }} "
75+ description: "${{ inputs.description }} "
76+ environment: "${{ inputs.environment }} "
77+ deploy-number: "${{ inputs.number }} "
78+ deploy-url: "${{ inputs.deploy_url }}"
79+ dedup-id: "${{ inputs.deduplication_id }} "
7580 deployer:
76- name: "$DEPLOYER_NAME "
77- email: "$DEPLOYER_EMAIL "
81+ name: "${{ inputs.deployer_name }} "
82+ email: "${{ inputs.deployer_email }} "
7883 EOF
79- opslevel create deploy -i "$INTEGRATION_URL" -f .
84+ opslevel create deploy -i "${ INTEGRATION_URL} " -f .
8085 env :
81- DESCRIPTION : ${{ inputs.description }}
82- DEPLOYER_EMAIL : ${{ inputs.deployer_email }}
83- DEPLOYER_NAME : ${{ inputs.deployer_name }}
84- DEDUPLICATION_ID : ${{ inputs.deduplication_id }}
85- ENVIRONMENT : ${{ inputs.environment }}
8686 INTEGRATION_URL : ${{ inputs.integration_url }}
87- NUMBER : ${{ inputs.number }}
88- SERVICE : ${{ inputs.service }}
0 commit comments