You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Label Syncer
v0.2.6
Action to sync GitHub labels in the declarative way.
By using this action, you can sync current labels with configured labels in a YAML manifest.
- color: d73a4a
description: Something isn't working
name: bug
- color: 0075ca
description: Improvements or additions to documentation
name: documentation
- color: cfd3d7
description: This issue or pull request already exists
name: duplicate
The default file path is .github/labels.yml
, but you can specify any file path with jobs.<job_id>.steps.with
.
To create manifest of the current labels easily, we recommend using label-exporter.
name: Sync labels in the declarative way
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: micnncim/action-label-syncer@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
with:
manifest: labels.yml # default: .github/labels.yml