Maintain the labels on your GitHub repository through a file in your repository.
-
Create
.github/labels.yml
in your repository, and define some labels.labels: metadata: color: "EEEEEE" description: Relates to package metadata
-
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 }}
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. |
npm version patch --message "chore: Version bump %s"