Skip to content

Commit

Permalink
chore(ci): use string evaluation rather than boolean (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Oct 18, 2023
1 parent e27f71c commit a112bd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a112bd6

Please sign in to comment.