Skip to content

Commit 2cbc615

Browse files
committed
jq is love, jq is life
1 parent 2929f98 commit 2cbc615

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,14 @@ jobs:
9696
echo "version = $VERSION"
9797
SHOULD_RELEASE=$(./mill show unipublish.autoRelease)
9898
echo "should release = ${SHOULD_RELEASE}"
99-
PLUGIN_VERSIONS=$(./mill show plugin.publishableVersions | jq -r 'join(",")')
99+
PLUGIN_VERSIONS=$(./mill show plugin.publishableVersions)
100100
echo "plugin versions = ${PLUGIN_VERSIONS}"
101+
PLUGIN_MODULES=$(echo "${PLUGIN_VERSIONS}" | jq -r 'map("plugin.cross[" + . + "]") | join(",")')
102+
echo "plugin modules = ${PLUGIN_MODULES}"
101103
./mill mill.javalib.SonatypeCentralPublishModule/ \
102104
--shouldRelease "$SHOULD_RELEASE" \
103105
--bundleName "chisel-$VERSION" \
104-
--publishArtifacts "{unipublish,plugin.cross[${PLUGIN_VERSIONS}]}.publishArtifacts"
106+
--publishArtifacts "{unipublish,${PLUGIN_MODULES}}.publishArtifacts"
105107
# FIXME uncomment, done for debugging PR
106108
#env:
107109
# MILL_PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

0 commit comments

Comments
 (0)