Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 12d74e6

Browse files
authored
ci: Rebase during publish step (#7229)
#### Problem Sometimes, while the publish workflow is running, we merge a different PR, which means that the workflow is running against an older commit. This makes the step to push the tag commit fail sometimes, but this happens *after* the new crate has already been published. This means that we end up publishing crates that don't have any commits attached to them. #### Summary of changes Add a step to rebase before publishing.
1 parent 04e0304 commit 12d74e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish-rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ jobs:
183183
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
184184
git config --global user.name "github-actions[bot]"
185185
186+
- name: Rebase
187+
run: git pull --rebase origin
188+
186189
- name: Publish Crate
187190
id: publish
188191
env:

0 commit comments

Comments
 (0)