about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Lattimore <dvdlttmr@gmail.com>2023-05-17 16:47:24 +1000
committerDavid Lattimore <dvdlttmr@gmail.com>2023-05-29 21:24:20 +1000
commit67f1c3cd16f91ef104aa2ad1227a038b8951c71e (patch)
treebdd0bee60ff569d08b90de946f3eb737f009166c
parent505fd09f9e020b096d014e68b667268e743c2dd6 (diff)
downloadrust-67f1c3cd16f91ef104aa2ad1227a038b8951c71e.tar.gz
rust-67f1c3cd16f91ef104aa2ad1227a038b8951c71e.zip
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.
-rw-r--r--.github/workflows/autopublish.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/autopublish.yaml b/.github/workflows/autopublish.yaml
index 7090c94d93c..15cedab1272 100644
--- a/.github/workflows/autopublish.yaml
+++ b/.github/workflows/autopublish.yaml
@@ -28,7 +28,7 @@ jobs:
       - name: Publish Crates
         env:
           CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
-          PATCH: ${{ github.run_number }}
+          RUN_NUMBER: ${{ github.run_number }}
         shell: bash
         run: |
           git config --global user.email "runner@gha.local"
@@ -53,4 +53,4 @@ jobs:
           # Remove library crates from the workspaces so we don't auto-publish them as well
           sed -i 's/ "lib\/\*",//' ./Cargo.toml
           find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} +
-          cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH
+          cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$(($RUN_NUMBER + 133))