Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 2.7 KB

prepare-release.md

File metadata and controls

87 lines (61 loc) · 2.7 KB

GitHub Reusable Workflow: Prepare release

Reusable workflow that performs release preparation tasks:

  • Add proper labels to pull requests
  • Ensure release configuration is up to date

Usage

name: "Prepare release"

on:
  push:
    branches: [main]
  pull_request:
    types: [opened, reopened, synchronize]

permissions:
  contents: write
  pull-requests: write

jobs:
  release:
    uses: hoverkraft-tech/ci-github-publish/.github/workflows/[email protected]
    with:
      # Json array of runner(s) to use.
      # See <https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job>.
      runs-on: '["ubuntu-latest"]'
    secrets:
      # GitHub token with permissions `contents: write`, `pull-requests: write`.
      # See <https://github.com/hoverkraft-tech/ci-github-common/blob/main/actions/create-and-merge-pull-request/README.md>.
      github-token: ""

Permissions

This workflow requires the following permissions:

  • contents: write: To read the contents of the repository and write configuration file.
  • pull-requests: write: To create and merge pull requests, and to add labels to pull requests.

Secrets

Secret Description Default Required
github-token GitHub token with permissions contents: write, pull-requests: write. GITHUB_TOKEN false

Inputs

Input Description Default Required
runs-on Json array of runner(s) to use. See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job. ["ubuntu-latest"] false