Create or update repository label metadata from a label configuration file.
- name: Setup labels
id: labels
uses: athackst/ci/actions/setup-labels@main
with:
github-token: $
| Name | Description | Default |
|---|---|---|
github-token |
(optional) GitHub token with permissions to manage repository labels. | $ |
repo |
(optional) Repository in owner/repo format where labels should be managed. |
$ |
configuration-path |
(optional) Path to the label configuration file. | Bundled ../pr-labeler/labeler.yml |
| Name | Description |
|---|---|
created-labels |
Comma-separated labels created. |
updated-labels |
Comma-separated labels updated. |
unchanged-labels |
Comma-separated labels already matching the desired metadata. |
skipped-labels |
Comma-separated labels skipped because they did not define usable metadata for label setup. |
issues: write is typically sufficient.configuration-path is not set.description nor color are skipped quietly.description is missing, the label is skipped.color is missing, the action uses the default color 808080.Use a repository-specific label config:
- name: Setup labels
uses: athackst/ci/actions/setup-labels@main
with:
github-token: $
configuration-path: .github/ci-config.yml