Skip to content

Commit ab53ea2

Browse files
authored
ci(release-please): ensure main exists when rebasing (#3104)
1 parent cdc0f5c commit ab53ea2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ jobs:
6060
run: |
6161
git config user.name otelbot
6262
git config user.email [email protected]
63-
git rebase main -x "git commit --amend --reset-author --no-edit"
63+
git fetch origin main:refs/remotes/origin/main
64+
git rebase origin/main -x "git commit --amend --reset-author --no-edit"
6465
npm install --ignore-scripts --package-lock-only
6566
git add package-lock.json
6667
git commit -m "chore: sync package-lock.json 'dependencies' key"

0 commit comments

Comments
 (0)