Skip to content

oliversalzburg/action-label-manager

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Label Manager Action

Pre-Release

Maintain the labels on your GitHub repository through a file in your repository.

Usage

  1. Create .github/labels.yml in your repository, and define some labels.

    labels:
      metadata:
        color: "EEEEEE"
        description: Relates to package metadata
  2. Call the action in a workflow.

    name: Manage Labels
    
    on:
      push:
        branches:
          - main
        paths:
          - .github/labels.yml
      workflow_dispatch:
    
    concurrency: manage-labels
    
    jobs:
      manage-labels:
        permissions:
          contents: read
          issues: write
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - uses: oliversalzburg/action-label-manager@v0.0.9
            with:
              repo_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
force string false If set to true, will
remove labels that are no
longer defined in the configuration.
repo_token string true Needs secrets.GITHUB_TOKEN to talk to
the API.

Release Process

npm version patch --message "chore: Version bump %s"