Skip to content

Commit 1d9f702

Browse files
committed
use --wildcards for tar extraction
1 parent 4d8c89c commit 1d9f702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
run: |
7777
SDIST_FILE=$(ls dist/*.tar.gz)
7878
# Extract version from sdist archive (format: mdaencore-1.0.1rc1.tar.gz)
79-
VERSION=$(tar xf ${SDIST_FILE} -O '*/*.egg-info/PKG-INFO' | awk '/^Version:/ {print $2}')
79+
VERSION=$(tar xf ${SDIST_FILE} -O --wildcards '*/*.egg-info/PKG-INFO' | awk '/^Version:/ {print $2}')
8080
echo "version=$VERSION" >> $GITHUB_OUTPUT
8181
echo "Extracted version: $VERSION"
8282

0 commit comments

Comments
 (0)