Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 50299e0

Browse files
committed
chore: capitalise all input names
1 parent 5945106 commit 50299e0

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.github/actions/notify_slack/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,34 @@ inputs:
44
SLACK_WEBHOOK_URL:
55
description: Slack webhook URL
66
required: true
7-
status:
7+
STATUS:
88
description: Job status
99
required: true
10-
release_type:
10+
RELEASE_TYPE:
1111
description: Release type
1212
required: true
13-
version:
13+
VERSION:
1414
description: Version
1515
required: true
1616
default: N/A
1717
runs:
1818
using: composite
1919
steps:
2020
- name: Send Slack Notification on Success
21-
if: ${{ inputs.status == 'success' }}
21+
if: ${{ inputs.STATUS == 'success' }}
2222
run: |-
2323
curl -X POST -H 'Content-type: application/json' \
2424
--data '{
25-
"text": "'"${{ inputs.release_type }}"' Release succeeded for api.deriv.com with version *'"${{ inputs.version }}"'*"
25+
"text": "'"${{ inputs.RELEASE_TYPE }}"' Release succeeded for api.deriv.com with version *'"${{ inputs.VERSION }}"'*"
2626
}' \
2727
${{ inputs.SLACK_WEBHOOK_URL }}
2828
shell: bash
2929
- name: Send Slack Notification on Failure
30-
if: ${{ inputs.status == 'failure' }}
30+
if: ${{ inputs.STATUS == 'failure' }}
3131
run: |-
3232
curl -X POST -H 'Content-type: application/json' \
3333
--data '{
34-
"text": "'"${{ inputs.release_type }}"' Release failed for api.deriv.com with version *'"${{ inputs.version }}"'*"
34+
"text": "'"${{ inputs.RELEASE_TYPE }}"' Release failed for api.deriv.com with version *'"${{ inputs.VERSION }}"'*"
3535
}' \
3636
${{ inputs.SLACK_WEBHOOK_URL }}
3737
shell: bash
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: versioning
22
description: Generates a version for the build
33
inputs:
4-
version_name:
5-
description: Version name
4+
RELEASE_TYPE:
5+
description: Release Type
66
required: false
77
default: staging
88
runs:
99
using: composite
1010
steps:
1111
- name: Tag build
12-
run: echo "${{ inputs.version_name }} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > build/version
12+
run: echo "${{ inputs.RELEASE_TYPE }} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > build/version
1313
shell: bash

.github/workflows/release_production.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
- name: Versioning
4040
uses: ./.github/actions/versioning
4141
with:
42-
version_name: production
43-
- name: Read version file
42+
RELEASE_TYPE: production
43+
- name: Read from version file
4444
id: readVersion
4545
run: echo "version=$(cat build/version)" >> $GITHUB_OUTPUT
4646
- name: Send Slack Notification
4747
uses: ./.github/actions/notify_slack
4848
with:
49-
release_type: Production
49+
RELEASE_TYPE: Production
5050
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
51-
status: ${{ env.WORKFLOW_CONCLUSION }}
52-
version: ${{ steps.readVersion.outputs.version }}
51+
STATUS: ${{ env.WORKFLOW_CONCLUSION }}
52+
VERSION: ${{ steps.readVersion.outputs.version }}

0 commit comments

Comments
 (0)