Skip to content

Commit cb11533

Browse files
authored
Modify CI workflow for full history and rebase
Updated fetch-depth to 0 for full history and added a rebase step to sync with the remote repository. Signed-off-by: саня <109840177+kort0881@users.noreply.github.com>
1 parent 570c659 commit cb11533

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Checkout Code
1818
uses: actions/checkout@v4
1919
with:
20-
fetch-depth: 1
20+
fetch-depth: 0 # важно: полный history, чтобы работал rebase
2121
token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: Set up Python
@@ -43,6 +43,12 @@ jobs:
4343
env:
4444
PYTHONUNBUFFERED: '1'
4545

46+
- name: Sync with remote (rebase)
47+
run: |
48+
git config user.name "GitHub Actions Bot"
49+
git config user.email "actions@github.com"
50+
git pull --rebase origin main || true
51+
4652
- name: Commit & Push Results
4753
uses: stefanzweifel/git-auto-commit-action@v5
4854
with:

0 commit comments

Comments
 (0)