Skip to content

Commit d830bea

Browse files
authored
fix: update GitHub Actions workflow to push branch before creating PR for sponsor updates (#25)
1 parent 0373012 commit d830bea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/scheduled-task_update-sponsors.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ jobs:
5050
# Commit changes
5151
git add README.md
5252
git commit -m "chore: update sponsors"
53-
git push origin HEAD
5453
55-
# Create PR and enable auto-merge
54+
# Push the branch BEFORE creating the PR
55+
git push -u origin HEAD
56+
57+
# Now create PR and enable auto-merge
5658
PR_URL=$(gh pr create \
5759
--title "chore: update sponsors" \
5860
--body "Automated PR to update sponsors section in README" \

0 commit comments

Comments
 (0)