File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 67
67
token : ${{ secrets.SCRIBD_SLACK_GENERIC_TOKEN_PUBLIC }}
68
68
channel : test-release-notification
69
69
status : failure
70
+ test-overwrite-environment :
71
+ runs-on : ubuntu-22.04
72
+ steps :
73
+ - name : Checkout
74
+ uses : actions/checkout@v3
75
+ with :
76
+ token : ${{ secrets.SCRIBD_GITHUB_RELEASE_TOKEN }}
77
+ - name : Run action
78
+ uses : ./
79
+ with :
80
+ token : ${{ secrets.SCRIBD_SLACK_GENERIC_TOKEN_PUBLIC }}
81
+ channel : test-release-notification
82
+ environment : test-environment
70
83
71
84
codeowners :
72
85
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ inputs:
17
17
description : Customize the notification status to be "success", "failure" or a custom value.
18
18
required : false
19
19
default : ${{ job.status }}
20
+ environment :
21
+ description : Customize the environment to be something other than branch name
22
+ required : false
23
+ default : ${{ github.ref_name }}
20
24
message :
21
25
description : Customize the notification message.
22
26
79
83
"short": true
80
84
},
81
85
{
82
- "title": "Environment",
83
- "value": "${{ github.ref_name == 'main' && 'production' || github.ref_name }}",
86
+ "title": "Environment/Branch ",
87
+ "value": "${{ inputs.environment || github.ref_name }}",
84
88
"short": true
85
89
},
86
90
{
You can’t perform that action at this time.
0 commit comments