-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (40 loc) · 1.3 KB
/
update-samples.yml
File metadata and controls
49 lines (40 loc) · 1.3 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
38
39
40
41
42
43
44
45
46
47
48
49
name: Update Samples
on:
schedule:
- cron: '0 0 * * SUN'
workflow_dispatch:
jobs:
update-samples:
name: Update Samples
permissions:
contents: write
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
- name: Clone quickstarts
uses: actions/checkout@v6
with:
repository: Azure/azure-quickstart-templates
path: workflow-temp/azure-quickstart-templates
- name: Update Samples
shell: pwsh
run: ./scripts/UpdateSamples.ps1 -QuickStartsRepoPath workflow-temp/azure-quickstart-templates
- name: Update Baselines
run: ./scripts/update_baselines.sh
# this will fail if there are changes - this is expected
continue-on-error: true
- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Update Quickstart & AVM samples
file_pattern: settings/samples src/TemplateRefGenerator.Tests/Files
branch: update-samples
push_options: '--force'
create_branch: true