Update Package Versions #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Package Versions | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "55 03 * * 2" # Run at 03:55 UTC on Tuesday | |
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/*']" | |
UpdatePackageVersions: | |
name: "[${{ matrix.branch }}] Update Package Versions" | |
if: github.repository_owner == 'microsoft' | |
permissions: | |
contents: write | |
runs-on: windows-latest | |
environment: Official-Build | |
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 Package Versions | |
env: | |
GH_TOKEN: ${{ secrets.GHTOKENWORKFLOW }} | |
uses: microsoft/BCApps/.github/actions/RunAutomation@main | |
with: | |
automations: UpdateAppBaselines,UpdateAppTranslations | |
targetBranch: ${{ matrix.branch }} |