Reusable workflow that performs release preparation tasks:
- Add proper labels to pull requests
- Ensure release configuration is up to date
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: ""
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.
Secret | Description | Default | Required |
---|---|---|---|
github-token |
GitHub token with permissions contents: write , pull-requests: write . |
GITHUB_TOKEN |
false |
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 |