Skip to content

Commit a0eb109

Browse files
authored
Update comment-to-commit-using-aider.yml
1 parent 4e68862 commit a0eb109

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/comment-to-commit-using-aider.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,21 @@ jobs:
6464
echo "::set-output name=branch::$BRANCH"
6565
fi
6666
shell: bash
67-
67+
68+
- name: Pull remote changes
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
run: |
72+
# Ensure the local branch is up-to-date with the remote.
73+
TARGET_BRANCH="${{ steps.branch.outputs.branch }}"
74+
echo "Pulling latest changes from branch: $TARGET_BRANCH"
75+
git pull --rebase origin "$TARGET_BRANCH"
76+
6877
- name: Push changes
6978
env:
7079
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7180
run: |
81+
# Push the updated branch with the revert commit.
7282
TARGET_BRANCH="${{ steps.branch.outputs.branch }}"
7383
echo "Pushing changes to branch: $TARGET_BRANCH"
7484
git push origin HEAD:"$TARGET_BRANCH"

0 commit comments

Comments
 (0)