diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 033d8ebf..74b5ab29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,20 +43,20 @@ jobs: GITHUB_TOKEN: ${{ github.token }} - name: Get version and package name - if: ${{ !github.event.inputs.dry-run }} + if: ${{ github.event.inputs.dry-run == 'false' }} run: | echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV echo "NPM_PACKAGE=$(jq -r '.name' package.json) >> $GITHUB_ENV - name: Create 'latest' dist-tag - if: ${{ !github.event.inputs.dry-run }} + if: ${{ github.event.inputs.dry-run == 'false' }} run: npm dist-tag --otp=${TOTP_CODE} add "${NPM_PACKAGE}@${VERSION}" latest - name: Create 'stack_release' dist-tag - if: ${{ !github.event.inputs.dry-run && github.event.inputs.is-stack-release }} + if: ${{ github.event.inputs.dry-run == 'false' && github.event.inputs.is-stack-release == 'true' }} run: npm dist-tag --otp=${TOTP_CODE} add "${NPM_PACKAGE}@${VERSION}" stack_release - - if: ${{ always() && !github.event.inputs.dry-run }} + - if: ${{ always() && github.event.inputs.dry-run == 'false' }} uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current with: vaultUrl: ${{ secrets.VAULT_ADDR }}