Skip to content

Commit

Permalink
Publish Secrets SDK in main release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
  • Loading branch information
t1m0thyj committed Nov 9, 2023
1 parent 7c70c1a commit e5e4a5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/secrets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"bugs": {
"url": "https://github.com/zowe/zowe-cli/issues"
},
"private": true,
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
Expand Down
6 changes: 4 additions & 2 deletions packages/secrets/scripts/prebuildify.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
set -ex
rm -rf prebuilds && mkdir -p prebuilds
SECRETS_BRANCH="${SECRETS_BRANCH:-master}"
if [ -z "$SECRETS_BRANCH" ]; then
SECRETS_BRANCH=$(git rev-parse --abbrev-ref HEAD)
fi
SECRETS_WORKFLOW_ID=$(gh run list -b $SECRETS_BRANCH --limit 1 --status success --workflow "Secrets SDK CI" --json databaseId --jq ".[0].databaseId")
echo "Downloading Secrets SDK prebuilds from $SECRETS_BRANCH branch..."
gh run download $SECRETS_WORKFLOW_ID --dir prebuilds --pattern "bindings-*"
mv prebuilds/*/* prebuilds && rm -r prebuilds/*/
mv prebuilds/*/* prebuilds && rm -r prebuilds/*/

0 comments on commit e5e4a5c

Please sign in to comment.