File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,9 @@ name: E2E Smoke Tests
4
4
on :
5
5
workflow_dispatch :
6
6
inputs :
7
- version :
8
- description : ' release version'
9
- required : false
10
- default : ' unknown'
11
- tag :
12
- description : ' @tag to install'
13
- required : false
7
+ versionOrTag :
8
+ description : ' release version or tag'
9
+ required : true
14
10
default : ' next'
15
11
16
12
jobs :
43
39
echo "export const config = $PROJECT_CONFIG; export const testAccount = $TEST_ACCOUNT" > firebase-config.js
44
40
- name : Yarn install
45
41
run : |
46
- echo "Installing firebase@${{ github.event.inputs.tag }}"
47
- yarn add firebase@${{ github.event.inputs.tag }}
42
+ echo "Installing firebase@${{ github.event.inputs.versionOrTag }}"
43
+ yarn add firebase@${{ github.event.inputs.versionOrTag }}
48
44
yarn
49
45
- name : Deploy "callTest" cloud function
50
46
run : |
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ async function notifyTestResults() {
42
42
// Add version if it can find it in the workflow_dispatch event data.
43
43
if ( process . env . GITHUB_EVENT_PATH ) {
44
44
const wrPayload = require ( process . env . GITHUB_EVENT_PATH ) ;
45
- if ( wrPayload . inputs && wrPayload . inputs . version ) {
46
- message += ` for release ${ wrPayload . inputs . version } .` ;
45
+ if ( wrPayload . inputs && wrPayload . inputs . versionOrTag ) {
46
+ message += ` for release ${ wrPayload . inputs . versionOrTag } .` ;
47
47
} else {
48
- console . log ( `Couldn't find version in event payload.` ) ;
48
+ console . log ( `Couldn't find versionOrTag in event payload.` ) ;
49
49
}
50
50
} else {
51
51
console . log ( `Couldn't find event payload.` ) ;
You can’t perform that action at this time.
0 commit comments