Skip to content

Commit fc29ba9

Browse files
committed
fix: use more specific grep pattern for macros version extraction
The previous grep pattern matched the workspace members array entry before the dependency definition line, causing the sed substitution to output the wrong value.
1 parent db105db commit fc29ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
- name: Verify aptos-sdk-macros dependency is available
171171
if: needs.publish-macros.result == 'skipped'
172172
run: |
173-
MACROS_VERSION=$(grep 'aptos-sdk-macros' Cargo.toml | head -1 | sed 's/.*version = "\([^"]*\)".*/\1/')
173+
MACROS_VERSION=$(grep 'aptos-sdk-macros.*version' Cargo.toml | head -1 | sed 's/.*version = "\([^"]*\)".*/\1/')
174174
echo "Checking that aptos-sdk-macros ${MACROS_VERSION} exists on crates.io..."
175175
if ! curl -sf -H "User-Agent: aptos-rust-sdk-ci" \
176176
"https://crates.io/api/v1/crates/aptos-sdk-macros/${MACROS_VERSION}" > /dev/null 2>&1; then

0 commit comments

Comments
 (0)