From a974276730bbff7cf5ebb8bd7b56229963e117d8 Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Thu, 27 Jun 2024 15:35:17 -0600 Subject: [PATCH] set up environment correctly --- .github/workflows/release.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bead31..50208c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,7 @@ on: push: branches: ["6.1"] - - # temporary to allow running of action - pull_request: - branches: ["main"] - workflow_dispatch: {} + workflow_dispatch: {} permissions: contents: write @@ -61,6 +57,17 @@ jobs: npm_package_name: mongodb-client-encryption dry_run: ${{ needs.release_please.outputs.release_created == '' }} + - name: Set up silk environment + shell: bash + run: | + set -eu + SILKBOMB_ENVFILE=/tmp/silkbomb-envfile + cat << EOF > $SILKBOMB_ENVFILE + SILK_CLIENT_ID=${SILKBOMB_USER} + SILK_CLIENT_SECRET=${SILKBOMB_KEY} + EOF + echo 'SILKBOMB_ENVFILE=$SILKBOMB_ENVFILE' >> $GITHUB_ENV + - name: Copy sbom file to release assets shell: bash if: ${{ 'mongodb-client-encryption-6.1' == '' }}