Skip to content

Commit

Permalink
ci: Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CycleBai committed Jul 29, 2024
1 parent b5197d2 commit f3c0202
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/auto_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
echo "$(date +%s%N)" > timestamp.txt # Create a file with current timestamp in nanoseconds
git add timestamp.txt
git commit -m "Add timestamp file to ensure branch differences"
git pull --rebase origin ${{ steps.hash_committer.outputs.branch_name }} || true
git pull
git push origin ${{ steps.hash_committer.outputs.branch_name }}
- name: Create or Update Pull Request
Expand All @@ -58,7 +56,7 @@ jobs:
title: "Auto PR from ${{ steps.hash_committer.outputs.branch_name }}"
body: "This is an automated PR created from ${{ steps.hash_committer.outputs.branch_name }}"
draft: false
# update_existing: true # Automatically update the existing PR if it exists
update_existing: true # Automatically update the existing PR if it exists

sync_commits:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -87,5 +85,9 @@ jobs:
run: |
git fetch origin
git checkout ${{ steps.hash_committer.outputs.branch_name }}
git pull origin ${{ steps.hash_committer.outputs.branch_name }} --rebase
git pull origin ${{ steps.hash_committer.outputs.branch_name }} --rebase || true
if [ -f .git/rebase-apply ]; then
git rebase --abort
git pull --rebase origin ${{ steps.hash_committer.outputs.branch_name }}
fi
git push origin ${{ steps.hash_committer.outputs.branch_name }}

0 comments on commit f3c0202

Please sign in to comment.