File tree Expand file tree Collapse file tree 2 files changed +53
-1
lines changed Expand file tree Collapse file tree 2 files changed +53
-1
lines changed Original file line number Diff line number Diff line change @@ -911,7 +911,7 @@ jobs:
911
911
# ARM Mac requires a firestore.json to specify the host as 127.0.0.1 rather than localhost.
912
912
# Otherwise the Firestore emulator cannot connect, probably because localhost is ipv6.
913
913
echo '{"emulators":{"firestore":{"port":"8080","host":"127.0.0.1"}}}' > firebase.json
914
-
914
+ echo "::warning ::Firestore emulator version: $(firebase --version)"
915
915
set -x
916
916
firebase emulators:exec --only firestore --project demo-example \
917
917
'python scripts/gha/desktop_tester.py --testapp_dir testapps --logfile_name "desktop-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.ssl_variant }}" --cmd_prefix='"\"${cmd_prefix}\""
Original file line number Diff line number Diff line change
1
+ name : Update custom GitHub runners
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ runner_list :
7
+ description : ' Runner hostname to update (comma-separated)'
8
+ default : ' fplmac1,fplmac2'
9
+ required : true
10
+ update_tools :
11
+ description : ' Update tools?'
12
+ default : ' 1'
13
+ required : true
14
+ update_os :
15
+ description : ' Update OS?'
16
+ default : ' 0'
17
+ required : true
18
+
19
+ env :
20
+ GITHUB_TOKEN : ${{ github.token }}
21
+
22
+ jobs :
23
+ update_custom_runners :
24
+ name : update-custom-runner-${{ matrix.runner_hostname }}
25
+ runs-on : [self-hosted, '${{ matrix.runner_hostname }}' ]
26
+ if : ${{ github.event.input.runner_list }}
27
+
28
+ strategy :
29
+ matrix :
30
+ runner_hostname : ${{ github.event.input.runner_list }}
31
+
32
+ steps :
33
+ - name : Update tools
34
+ if : ${{ github.event.inputs.update_tools }}
35
+ shell : bash
36
+ run : |
37
+ echo "npm install -g firebase-tools"
38
+
39
+ - name : Check for OS updates
40
+ shell : bash
41
+ run : |
42
+ if softwareupdate -l -r | grep -q 'No new software available'
43
+ then
44
+ echo "::warning ::No OS updates available."
45
+ else
46
+ echo "softwareupdate -l -r | tr '\n' '|' | sed 's/|/%0A/g' | sed "
47
+
48
+ - name : Update OS
49
+ if : ${{ github.event.inputs.update_os }}
50
+ shell : bash
51
+ run : |
52
+ echo "softwareupdate -i -r -f"
You can’t perform that action at this time.
0 commit comments