Skip to content

Commit a9d03d6

Browse files
committed
CI: call cargo metadata with the --no-deps flag when extracting the version
1 parent dea3ea7 commit a9d03d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Compute the new minor RC
2929
id: next
3030
run: |
31-
CURRENT_VERSION="$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "mas-cli") | .version')"
31+
CURRENT_VERSION="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "mas-cli") | .version')"
3232
NEXT_VERSION="$(npx --yes [email protected] -i preminor --preid rc "${CURRENT_VERSION}")"
3333
# compute the short minor version, e.g. 0.1.0-rc.1 -> 0.1
3434
SHORT_VERSION="$(echo "${NEXT_VERSION}" | cut -d. -f1-2)"

.github/workflows/release-bump.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Extract the current version
3737
id: current
38-
run: echo "version=$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "mas-cli") | .version')" >> "$GITHUB_OUTPUT"
38+
run: echo "version=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "mas-cli") | .version')" >> "$GITHUB_OUTPUT"
3939

4040
- name: Compute the new minor RC
4141
id: next

0 commit comments

Comments
 (0)