Skip to content

Commit 6518924

Browse files
committed
Fix proc-macro test
1 parent df4f131 commit 6518924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ jobs:
176176
shell: bash
177177
run: |
178178
set +e # toml crashes the whole shell if it fails to find the key
179-
result=$(toml get "${{ inputs.package-path }}/Cargo.toml" lib.crate-type)
180-
if [[ "$result" == *"proc-macro"* ]]; then
179+
result=$(toml get "${{ inputs.package-path }}/Cargo.toml" lib.proc-macro)
180+
if [[ "$result" == *"yes"* ]]; then
181181
echo "is_proc_macro=true" >> "$GITHUB_OUTPUT"
182182
else
183183
echo "is_proc_macro=false" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)