File tree Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Expand file tree Collapse file tree 3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 7
7
newTask,
8
8
} = require ( "../utils" ) ;
9
9
10
- const replayRevision = getLatestReplayRevision ( ) ;
11
- const playwrightRevision = getLatestPlaywrightRevision ( ) ;
10
+ const replayRevision = process . env . INPUT_RUNTIME_REVISION || getLatestReplayRevision ( ) ;
11
+ const playwrightRevision = process . env . INPUT_PLAYWRIGHT_REVISION || getLatestPlaywrightRevision ( ) ;
12
12
13
13
sendBuildTestRequest ( {
14
14
name : `Gecko Release ${ replayRevision } ` ,
@@ -26,6 +26,7 @@ function platformTasks(platform) {
26
26
kind : "ReleaseRuntime" ,
27
27
runtime : "gecko" ,
28
28
revision : replayRevision ,
29
+ driverRevision : process . env . INPUT_DRIVER_REVISION ,
29
30
} ,
30
31
platform
31
32
) ;
@@ -40,6 +41,7 @@ function platformTasks(platform) {
40
41
kind : "ReleaseRuntime" ,
41
42
runtime : "geckoPlaywright" ,
42
43
revision : playwrightRevision ,
44
+ driverRevision : process . env . INPUT_DRIVER_REVISION
43
45
} ,
44
46
platform
45
47
) ;
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ function getLatestPlaywrightRevision() {
20
20
function sendBuildTestRequest ( contents ) {
21
21
const text = JSON . stringify ( contents ) ;
22
22
23
+ console . log ( "Sending Task" , JSON . stringify ( contents , undefined , 2 ) ) ;
24
+
23
25
const headers = {
24
26
"Content-Type" : "application/json" ,
25
27
"Content-Length" : text . length ,
Original file line number Diff line number Diff line change 1
1
name : Release Latest Browsers
2
2
on :
3
3
workflow_dispatch :
4
+ inputs :
5
+ runtime_sha :
6
+ description : (Optional) 12 char SHA of gecko-dev
7
+ type : string
8
+ playwright_sha :
9
+ description : (Optional) 12 char SHA of playwright branch of gecko-dev
10
+ type : string
11
+ driver_sha :
12
+ description : (Optional) 12 char SHA of driver
13
+ type : string
4
14
5
15
jobs :
6
16
release :
@@ -14,14 +24,12 @@ jobs:
14
24
authkey : ${{ secrets.TAILSCALE_API_KEY }}
15
25
version : " 1.38.4"
16
26
- uses : actions/checkout@v2
17
- with :
18
- ref : replay-playwright
19
- - uses : actions/checkout@v2
20
- with :
21
- ref : webreplay-release
22
27
- uses : ./.github/actions/release
23
28
env :
24
29
BUILD_TEST_AUTHORIZATION : ${{ secrets.BUILD_TEST_AUTHORIZATION }}
25
30
BUILD_TEST_HOSTNAME : a49855c191a944333918aea7ad31bc76-6a8a830d89921d8a.elb.us-east-2.amazonaws.com
26
31
BUILD_TEST_PORT : ${{ secrets.BUILD_TEST_PORT }}
27
32
BUILD_TEST_INSECURE : ${{ secrets.BUILD_TEST_INSECURE }}
33
+ INPUT_RUNTIME_REVISION : ${{ inputs.runtime_sha }}
34
+ INPUT_PLAYWRIGHT_REVISION : ${{ inputs.playwright_sha }}
35
+ INPUT_DRIVER_REVISION : ${{ inputs.driver_sha }}
You can’t perform that action at this time.
0 commit comments