Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
circle

GitHub Action

Label Syncer

v0.2.4

Label Syncer

circle

Label Syncer

Sync GitHub labels in the declarative way

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Label Syncer

uses: micnncim/[email protected]

Learn more about this action in micnncim/action-label-syncer

Choose a version

Label Syncer

CI Release Marketplace

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.

Usage

Create YAML manifest of GitHub labels

- 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 GitHub labels for the current status of labels easily, we recommend using label-exporter.

Create Workflow

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

See also

LICENSE

MIT License