Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.04 KB

File metadata and controls

40 lines (30 loc) · 1.04 KB

Sync GitHub Labels

Sync GitHub labels from a configuration file. Creates, updates, or deletes labels to match the config, ensuring consistent labeling across repositories.

Inputs

Name Description Required Default
config-file URL or path to the labels config file devantler-tech labels
delete-other-labels Whether to delete labels not in the config true

Usage

Default config

steps:
  - name: Sync labels
    uses: devantler-tech/actions/sync-github-labels@main

Custom config

steps:
  - name: Sync labels
    uses: devantler-tech/actions/sync-github-labels@main
    with:
      config-file: "https://raw.githubusercontent.com/my-org/configs/main/labels.yaml"

Preserve existing labels

steps:
  - name: Sync labels
    uses: devantler-tech/actions/sync-github-labels@main
    with:
      delete-other-labels: "false"