mint/update-leaves-github 1.0.9

Update Mint leaves for GitHub repositories

Parameters

Parameter
Required
Default
Description
repository
*
GitHub HTTPS repository URL
ref
*
The ref to check out of the git repository
github-access-token
*
The GitHub access token to a private app
allow-major-version-change
false
Allow updating across major versions
branch-prefix
mint-update-
Branch prefix for opened pull requests
label
mint-updates
Label for opened pull requests
label-color
298F21
Label color if not yet created
mint-file
Scope updates to a specific file or files

README.md

Update the versions of Mint leaves used in a GitHub repository. When updates are available, open or update a pull request.

The provided github-access-token should be for a private GitHub App with repository permissions for:

  • Contents: read and write
  • Pull Requests: read and write

If you would like to automatically create the label, additionally provide:

To update minor versions (recommended):

tasks:
  - key: mint-update-leaves
    call: mint/update-leaves-github 1.0.9
    with:
      repository: https://github.com/YOUR-ORG/YOUR-REPO.git
      ref: ${{ init.commit-sha }}
      github-access-token: ${{ vaults.MY_VAULT.github-apps.MY-GITHUB-APP.token }}

Customize the label and color name:

tasks:
  - key: mint-update-leaves
    call: mint/update-leaves-github 1.0.9
    with:
      repository: https://github.com/YOUR-ORG/YOUR-REPO.git
      ref: ${{ init.commit-sha }}
      github-access-token: ${{ vaults.MY_VAULT.github-apps.MY-GITHUB-APP.token }}
      label: mint-updates
      label-color: "298F21"

Setting label to an empty string will skip labeling new pull requests.

Pull requests that may be eligible for update are any for this repository that have been created by your private GitHub App and, if not set to an empty string, having the provided label.

If you reuse the same private GitHub App for other tasks, you should not set label to an empty string. When not provided, it will default to mint-updates.