Skip to content

Commit e1ca1ca

Browse files
committed
refactor: Parameterize sync target with secrets and update bot identity in workflow.
1 parent d190b1d commit e1ca1ca

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/sync.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Sync org → personal repo (exclude .github)
1+
name: Sync repository
22

33
# Trigger on every push (all branches)
44
on:
@@ -7,9 +7,8 @@ on:
77
- "**"
88

99
env:
10-
TARGET_OWNER: forrealdeveloper
11-
TARGET_REPO: learnverse-telegram-bot
12-
# Set MIRROR_ALL: 'true' if you want to mirror all refs & tags (destructive)
10+
TARGET_OWNER: ${{ secrets.TARGET_OWNER }}
11+
TARGET_REPO: ${{ secrets.TARGET_REPO }}
1312
MIRROR_ALL: "false"
1413

1514
permissions:
@@ -61,8 +60,8 @@ jobs:
6160
6261
- name: Configure git
6362
run: |
64-
git config user.name "github-actions[bot]"
65-
git config user.email "github-actions[bot]@users.noreply.github.com"
63+
git config user.name "Learnverse Bot"
64+
git config user.email "learnverse-bot@users.noreply.github.com"
6665
6766
- name: Push branch to personal repo (excluding .github)
6867
env:

0 commit comments

Comments
 (0)