Skip to content

Sync labels

Sync labels #141

Workflow file for this run

# Source: https://github.com/marketplace/actions/label-sync
name: Sync labels
on:
# You can run this with every type of event, but it's better to run it only when you actually need it.
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '00 5 * * *'
jobs:
labels:
name: Pull & Import Labels
runs-on: ubuntu-latest
steps:
- uses: EndBug/label-sync@v2
with:
# If you want to use a config file, you can put its path or URL here, multiple files are also allowed (more info in the paragraphs below)
# config-file: .github/labels.yml
# as URL:
config-file: https://raw.githubusercontent.com/OpenATO/.github/main/.github/configs/labels.yml
# as multiple:
# config-file: |
# https://raw.githubusercontent.com/EndBug/label-sync/main/.github/labels.yml
# .github/labels.yml
# If you want to use a source repo, you can put is name here (only the owner/repo format is accepted)
# source-repo: owner/repo
# If you're using a private source repo or a URL that needs an 'Authorization' header, you'll need to add a custom token for the action to read it
request-token: ${{ secrets.LABEL_TOKEN }}
# If you want to delete any additional label, set this to true
delete-other-labels: true
# If you want the action just to show you the preview of the changes, without actually editing the labels, set this to true
dry-run: false
# You can change the token used to change the labels, this is the default one
token: ${{ secrets.LABEL_TOKEN }}