forked from microsoft/BCApps
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.44 KB
/
UpdateBCArtifactVersion.yaml
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
50
51
52
53
54
name: Update BC Artifact Version
on:
workflow_dispatch:
schedule:
- cron: '55 5 * * *' # Daily at 05:55 UTC
defaults:
run:
shell: powershell
permissions: read-all
jobs:
GetBranches:
name: Get Official Branches
if: github.repository_owner == 'microsoft'
runs-on: ubuntu-latest
outputs:
updateBranches: ${{ steps.getOfficialBranches.outputs.branchesJson }}
steps:
- name: Get Official Branches
id: getOfficialBranches
uses: microsoft/BCApps/.github/actions/GetGitBranches@main
with:
include: "['main', 'releases/*']"
UpdateBCArtifactVersion:
name: "[${{ matrix.branch }}] Update BC Artifact Version"
if: github.repository_owner == 'microsoft'
permissions:
contents: write
environment: Official-Build
runs-on: windows-latest
needs: GetBranches
strategy:
matrix:
branch: ${{ fromJson(needs.GetBranches.outputs.updateBranches) }}
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ matrix.branch }}
- name: Update BC Artifact Version
env:
GH_TOKEN: ${{ secrets.GHTOKENWORKFLOW }}
uses: microsoft/BCApps/.github/actions/RunAutomation@main
with:
automations: UpdateBCArtifact
targetBranch: ${{ matrix.branch }}