Skip to content

Update BC Artifact Version #411

Update BC Artifact Version

Update BC Artifact Version #411

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
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 }}