-
Notifications
You must be signed in to change notification settings - Fork 77
44 lines (38 loc) · 1.38 KB
/
refresh-mirror.yml
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
38
39
40
41
42
43
44
name: Refresh VSO Mirror
on:
workflow_dispatch:
push:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
QueueBuild:
runs-on: ubuntu-latest
steps:
- uses: Azure/login@v1
with:
# These secrets describe the HvLite-GitHub service principal and associated Azure subscription,
# which, along with the GITHUB_TOKEN, are used to authenticate GitHub Actions to Azure with OpenID Connect.
# The service principal has federated identity credentials configured describing which branches and
# scenarios can be authenticated.
client-id: ${{ secrets.OPENVMM_CLIENT_ID }}
tenant-id: ${{ secrets.OPENVMM_TENANT_ID }}
subscription-id: ${{ secrets.OPENVMM_SUBSCRIPTION_ID }}
- name: Pull Azure Key Vault secrets
uses: Azure/get-keyvault-secrets@v1
with:
keyvault: 'HvLite-PATs'
secrets: 'HvliteMirrorPAT'
id: AzureKeyVault
- name: Checkout actions
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
shell: bash
run: pip install --user -r .github/scripts/refresh_mirror/requirements.txt
- name: Refresh VSO Mirror
shell: bash
run: python .github/scripts/refresh_mirror/refresh-mirror.py 149443 ${{ steps.AzureKeyVault.outputs.HvliteMirrorPAT }}