Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Clone Labels

Clone Labels #5

Workflow file for this run

name: Clone Labels
on:
schedule:
- cron: '0 0 1 * *' # 1st of every month at 00:00 UTC
- cron: '0 0 15 * *' # 15th of every month at 00:00 UTC
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
clone-labels:
name: Clone Labels
runs-on: ubuntu-latest
# Skip running in the template repository itself; it is the source of labels for other repos.
if: github.repository != 'dailydevops/template-dotnet'
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Clone labels
run: |
SOURCE_REPO="dailydevops/template-dotnet"
echo "Cloning labels from $SOURCE_REPO"
# Clone labels from source to target repository
gh label clone $SOURCE_REPO --force
echo "✅ Labels successfully cloned from $SOURCE_REPO to ${{ github.repository }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}