generated from dailydevops/template-dotnet
-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (25 loc) · 820 Bytes
/
clone-labels.yml
File metadata and controls
34 lines (25 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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 }}