Update Submodules to Latest Release #59
This file contains hidden or 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
# This workflow automatically creates a pull request for any submodule in the repo | |
# that has a new GitHub release available. The release must follow semantic versioning. | |
# | |
# The GitHub App ID and private key should be stored in the repository as a variable named `MU_ACCESS_APP_ID` and a | |
# secret named `MU_ACCESS_APP_PRIVATE_KEY` respectively. | |
# | |
# The GitHub App must grant the following permissions: | |
# - Read and write access to repository contents | |
# - Read and write access to pull requests | |
# | |
# NOTE: This file is automatically synchronized from Mu DevOps. Update the original file there | |
# instead of the file in this repo. | |
# | |
# - Mu DevOps Repo: https://github.com/microsoft/mu_devops | |
# - File Sync Settings: https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml | |
# | |
# Copyright (c) Microsoft Corporation. | |
# SPDX-License-Identifier: BSD-2-Clause-Patent | |
# | |
name: Update Submodules to Latest Release | |
on: | |
schedule: | |
- cron: '0 0 * * *' # https://crontab.guru/every-day | |
workflow_dispatch: | |
jobs: | |
repo_submodule_update: | |
name: Check for Submodule Releases | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate Token | |
id: app-token | |
uses: actions/create-github-app-token@v2 | |
with: | |
app-id: ${{ vars.MU_ACCESS_APP_ID }} | |
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }} | |
- name: Update Submodules to Latest Release | |
uses: microsoft/mu_devops/.github/actions/submodule-release-updater@v18.0.0 | |
with: | |
GH_PAT: ${{ steps.app-token.outputs.token }} | |
GH_USER: "ProjectMuBot" | |
GIT_EMAIL: "mubot@microsoft.com" | |
GIT_NAME: "Project Mu Bot" |