Skip to content

Commit 3afc396

Browse files
authored
Enhance sync workflow with fetch-depth and token
Updated the GitHub Actions workflow to include fetch-depth and token in the checkout step, and commented out user configuration lines.
1 parent d5de3b8 commit 3afc396

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/sync-main-to-dev.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ jobs:
2626

2727
- name: Checkout repository
2828
uses: actions/checkout@v5
29+
with:
30+
fetch-depth: 0
31+
token: ${{ steps.generate-token.outputs.token }}
2932

3033
- name: Create pull request
3134
id: pull_request
3235
shell: bash
3336
run: |
34-
git config user.name ${GITHUB_ACTOR}
35-
git config user.email "[email protected]"
37+
# git config user.name ${GITHUB_ACTOR}
38+
# git config user.email "[email protected]"
3639
SYNC="$BASE-sync-with-$HEAD"
3740
3841
git fetch origin -v

0 commit comments

Comments
 (0)