File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 4747 - name : Add Clang problem matcher
4848 shell : bash
4949 run : echo "::add-matcher::src/electron/.github/problem-matchers/clang.json"
50- - name : Enable long paths for Windows
51- shell : powershell
52- if : ${{ inputs.target-platform == 'win' }}
53- run : |
54- Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -Type DWord
5550 - name : Build Electron ${{ inputs.step-suffix }}
5651 shell : bash
5752 run : |
Original file line number Diff line number Diff line change 3636 echo "SAS Token not found; exiting src cache download early..."
3737 exit 1
3838 else
39- echo "const fs = require('fs');" > gettoken.js
40- echo "const fileContents = fs.readFileSync('sas-token', 'utf8');" >> gettoken.js
41- echo "const token = JSON.parse(fileContents);" >> gettoken.js
42- echo "console.log(token[process.argv[2]])" >> gettoken.js
43- sas_token=$(node ./gettoken.js sasToken)
44- account_name=$(node ./gettoken.js accountName)
39+ sas_token=$(jq -r '.sasToken' sas-token)
40+ account_name=$(jq -r '.accountName' sas-token)
4541 if [ "${{ inputs.target-platform }}" = "win" ]; then
4642 azcopy copy --log-level=ERROR \
4743 "https://$account_name.file.core.windows.net/${{ env.AZURE_AKS_WIN_CACHE_SHARE_NAME }}/${{ env.CACHE_PATH }}?$sas_token" $DEPSHASH.tar
You can’t perform that action at this time.
0 commit comments