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 |
dry-run |
(optional) Report planned changes without creating or updating labels. | false |
| 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; dry runs only need read access to labels.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.dry-run: true, the action reads existing labels and reports the create/update plan without mutating the repository.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