build: fix conditional for sas token (#42481)

This commit is contained in:
Keeley Hammond 2024-06-13 09:43:06 -05:00 committed by GitHub
parent 42266546eb
commit 75d0e725be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,12 +39,12 @@ runs:
node src/electron/script/generate-deps-hash.js && cat src/electron/.depshash-target
echo "DEPSHASH=v1-src-cache-$(shasum src/electron/.depshash | cut -f1 -d' ')" >> $GITHUB_ENV
- name: Generate SAS Key
if: ${{ inputs.generate-sas-token }} == 'true'
if: ${{ inputs.generate-sas-token == 'true' }}
shell: bash
run: |
curl --unix-socket /var/run/sas/sas.sock --fail "http://foo/$DEPSHASH.tar" > sas-token
- name: Save SAS Key
if: ${{ inputs.generate-sas-token }} == 'true'
if: ${{ inputs.generate-sas-token == 'true' }}
uses: actions/cache/save@v4
with:
path: |