Clone Labels #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Clone Labels | |
| on: | |
| schedule: | |
| - cron: '0 3 * * 1' # Every monday at 03:00 UTC | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| clone-labels: | |
| name: Clone Labels | |
| runs-on: ubuntu-latest | |
| 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 }} |