Skip to content

Label Sync

Label Sync #58

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Label Sync
on:
# Manual trigger
workflow_dispatch:
inputs:
dry-run:
description: "Dry Run"
default: true
required: false
type: boolean
# Dry run on pull requests
pull_request:
paths:
- .github/workflows/label-sync.yaml
- .github/labels.yaml
# Run when the configs changed on the main branch
push:
branches: ["main"]
paths:
- .github/workflows/label-sync.yaml
- .github/labels.yaml
# Scheduled daily
schedule:
- cron: "0 0 * * *"
jobs:
label-sync:
uses: mirceanton/reusable-workflows/.github/workflows/[email protected]
secrets: inherit
with:
dry-run: ${{ inputs.dry-run || github.event_name == 'pull_request' }}
config-file: .github/labels.yaml