Skip to content

Commit b93bede

Browse files
committed
[Auto] Enhance LeetCode README update workflow with fetch and rebase steps
1 parent 190d831 commit b93bede

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/update-leetcode-grid.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
run: |
3737
git config --local user.name "github-actions[bot]"
3838
git config --local user.email "github-actions[bot]@users.noreply.github.com"
39+
3940
git add README.md Site_README.md
4041
git diff-index --quiet HEAD || git commit -m "[Auto] Update LeetCode README table"
41-
git push
42+
43+
git fetch origin ${{ github.ref_name }}
44+
git rebase origin/${{ github.ref_name }}
45+
46+
git push origin HEAD:${{ github.ref_name }}

0 commit comments

Comments
 (0)