Skip to content

Commit cee7a72

Browse files
committed
Auto merge of rust-lang#14827 - davidlattimore:autopublish-offset, r=Veykril
autopublish: Offset version number The workflow is currently failing because it's trying to publish 0.0.16, while the last version published was 0.0.149.
2 parents 489eeab + 67f1c3c commit cee7a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/autopublish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Publish Crates
2929
env:
3030
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
31-
PATCH: ${{ github.run_number }}
31+
RUN_NUMBER: ${{ github.run_number }}
3232
shell: bash
3333
run: |
3434
git config --global user.email "[email protected]"
@@ -53,4 +53,4 @@ jobs:
5353
# Remove library crates from the workspaces so we don't auto-publish them as well
5454
sed -i 's/ "lib\/\*",//' ./Cargo.toml
5555
find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} +
56-
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH
56+
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$(($RUN_NUMBER + 133))

0 commit comments

Comments
 (0)