-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
40 lines (40 loc) · 1.3 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# action.yml
name: 'Teams Notification'
description: 'Post a status message to a Teams channel.'
inputs:
repository_name:
description: 'The name of the repository.'
required: true
branch_name:
description: 'The name of the branch.'
required: true
initiator:
description: 'The user who initiated the deployment.'
required: true
deployment_url:
description: 'The URL of the deployment.'
required: false
teams_webhook_url:
description: 'The URL of the Teams Webhook.'
required: true
message:
description: 'Message to display in the notification.'
required: true
progress_url:
description: 'URL to view the action progress.'
required: true
outputs:
http_response:
description: 'The HTTP response from the Teams Webhook'
runs:
using: 'docker'
image: 'Dockerfile'
env:
REPOSITORY_NAME: ${{ inputs.repository_name }}
BRANCH_NAME: ${{ inputs.branch_name }}
INITIATOR: ${{ inputs.initiator }}
DEPLOYMENT_URL: ${{ vars[format('{0}_DEPLOYMENT_URL', inputs.branch_name)] || '' }}
TEAMS_WEBHOOK_URL: ${{ inputs.teams_webhook_url }}
MESSAGE: ${{ inputs.message }}
PROGRESS_URL: ${{ inputs.progress_url }}
VARIABLE_SETUP_URL: https://github.com/${{ github.repository_owner }}/${{ inputs.repository_name }}/settings/variables/actions/new