forked from Azure/arc_jumpstart_docs
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1 KB
/
Copy pathjs-copilot-sync-docs.yml
File metadata and controls
37 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Copilot - Sync docs
on:
push:
branches:
- copilot-docs-metadata
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
sync-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: copilot-docs-metadata
- name: 'Az powershell login'
uses: azure/login@v2
with:
client-id: ${{ secrets.CLIENT_ID }}
tenant-id: ${{ secrets.TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
enable-AzPSSession: true
- name: Sync docs to storage account
uses: azure/powershell@v2
env:
storageAccountName: 'stgjscopilotdocs' # Add as repo secret
containerName: 'docs' # Add as repo secret
with:
azPSVersion: "latest"
inlineScript: |
./scripts/powershell/copy-JumpstartDocs.ps1 -SourcePath docs -StorageAccountName $($env:storageAccountName) -ContainerName $($env:containerName)