Skip to content

Commit

Permalink
Use azure/cli action to run az
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Apr 10, 2024
1 parent 0198164 commit 4a50542
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

# For Azure uploads
- name: 'Az CLI login'
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -41,6 +41,8 @@ jobs:
run: node ./publish-monaco-editor.js next

- name: Upload to Azure
env:
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
run: node ./upload-assets-to-blob-storage.js next
uses: azure/cli@v2
with:
inlineScript: |
export AZURE_STORAGE_ACCOUNT=${{ secrets.AZURE_STORAGE_ACCOUNT }}
node ./upload-assets-to-blob-storage.js next
10 changes: 6 additions & 4 deletions .github/workflows/pull_request_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

# For Azure uploads
- name: 'Az CLI login'
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand Down Expand Up @@ -75,6 +75,8 @@ jobs:
node pulls/comment-on-release.js $PULL_REQUEST_NUMBER $SEMVER_NUMBER
- name: Upload to Azure
env:
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
run: node ./upload-assets-to-blob-storage.js
uses: azure/cli@v2
with:
inlineScript: |
export AZURE_STORAGE_ACCOUNT=${{ secrets.AZURE_STORAGE_ACCOUNT }}
node ./upload-assets-to-blob-storage.js
10 changes: 6 additions & 4 deletions .github/workflows/ship_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

# For Azure uploads
- name: 'Az CLI login'
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -39,6 +39,8 @@ jobs:
run: "node ./publish-monaco-editor.js $(echo $FULL_TAG_REF | cut -d/ -f3)"

- name: Upload to Azure
env:
AZURE_STORAGE_ACCOUNT: ${{ secrets.AZURE_STORAGE_ACCOUNT }}
run: node ./upload-assets-to-blob-storage.js
uses: azure/cli@v2
with:
inlineScript: |
export AZURE_STORAGE_ACCOUNT=${{ secrets.AZURE_STORAGE_ACCOUNT }}
node ./upload-assets-to-blob-storage.js

0 comments on commit 4a50542

Please sign in to comment.