seantibor / export-label-config

An action that lets you generate a file containing your label settings for the current repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export label config

You can use this action to generate a JSON or YAML file that contains the current label config of one of your repositories.
This is made with the EndBug/label-sync action in mind, but you can use that data with whatever tool you prefer.

Example workflow:

name: Export label config
on: 
  # You can run this with every event, but it's better to run it only when you actually need it.
  workflow_dispatch:

jobs:
  labels:
    runs-on: ubuntu-latest

    steps:
      - uses: EndBug/export-label-config@v1
        with:
          # This is needed if you're dealing with private repos.
          token: ${{ secrets.GITHUB_TOKEN }}

          # Set this to `true` if you want to get the raw API reponse. Defaults to `false`.
          raw-result: false

          # By default every label entry will have an `aliases` property set to an empty array.
          # It's for EndBug/label-sync, if you don't want it you cans set this to `false`
          add-aliases: true

After running your workflow, you'll find the genearted files in the "Artifacts" section of your run.
To find more about artifacts, please refer to the GitHub Docs.

About

An action that lets you generate a file containing your label settings for the current repo

License:MIT License


Languages

Language:TypeScript 100.0%