File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,15 @@ author: "Craig Morten"
44branding :
55 icon : " check-circle"
66 color : " gray-dark"
7+ inputs :
8+ resolutionWidth :
9+ description : " Screen resolution width to use"
10+ required : false
11+ default : " 1920"
12+ resolutionHeight :
13+ description : " Screen resolution height to use"
14+ required : false
15+ default : " 1080"
716runs :
817 using : " node16"
918 main : " index.js"
Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ const exec = require("@actions/exec");
44
55async function main ( ) {
66 try {
7+ // Fix for GitHub actions macos-11 screencapture not working
8+ // REF: https://github.com/actions/runner-images/issues/5960
9+ const width = core . getInput ( "resolutionWidth" ) || "1920" ;
10+ const height = core . getInput ( "resolutionHeight" ) || "1080" ;
11+
712 await exec . exec (
8- `"/Library/Application Support/VMware Tools/vmware-resolutionSet" 1440 900 `
13+ `"/Library/Application Support/VMware Tools/vmware-resolutionSet" ${ width } ${ height } `
914 ) ;
15+
16+ // Run generic screenreader setup
1017 process . argv . push ( "--ci" ) ;
1118 require ( "@guidepup/setup" ) ;
1219 } catch ( err ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " @guidepup/setup-action" ,
3- "version" : " 0.3.4 " ,
3+ "version" : " 0.4.0 " ,
44 "description" : " GitHub Action to setup your environment for screen-reader automation." ,
55 "main" : " index.js" ,
66 "author" : " Craig Morten <craig.morten@hotmail.co.uk>" ,
You can’t perform that action at this time.
0 commit comments