From 0d1c8e42cc852ecefac3b441f345d22050ceaf72 Mon Sep 17 00:00:00 2001 From: Ricardo Dias Date: Wed, 15 Dec 2021 16:05:20 +0000 Subject: [PATCH] ELEMENTS-1432: treat dryRun as string in promote workflow --- .github/workflows/promote.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index eb73b35b9..3fff8d3fc 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -43,11 +43,11 @@ jobs: git commit -a -m "Release $VERSION" git tag -a v$VERSION -m "Release $VERSION" - - if: ${{ !github.event.inputs.dryRun }} + - if: ${{ github.event.inputs.dryRun == 'false' }} run: git push origin v$VERSION - name: Create Github release v${{ env.VERSION }} - if: ${{ !github.event.inputs.dryRun }} + if: ${{ github.event.inputs.dryRun == 'false' }} uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -56,21 +56,21 @@ jobs: release_name: Release ${{ env.VERSION }} - name: Publish to https://packages.nuxeo.com/repository/npm-public/ (dry run) - if: ${{ github.event.inputs.dryRun }} + if: ${{ github.event.inputs.dryRun == 'true' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }} run: | npx lerna exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://packages.nuxeo.com/repository/npm-public/ --dry-run - name: Publish to https://packages.nuxeo.com/repository/npm-public/ - if: ${{ !github.event.inputs.dryRun }} + if: ${{ github.event.inputs.dryRun == 'false' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }} run: | npx lerna exec --ignore @nuxeo/nuxeo-elements-storybook -- npm publish --@nuxeo:registry=https://packages.nuxeo.com/repository/npm-public/ - name: Publish to https://registry.npmjs.org (dry run) - if: ${{ github.event.inputs.dryRun }} + if: ${{ github.event.inputs.dryRun == 'true' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} run: | @@ -78,7 +78,7 @@ jobs: - name: Publish to https://registry.npmjs.org continue-on-error: true - if: ${{ !github.event.inputs.dryRun }} + if: ${{ github.event.inputs.dryRun == 'false' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} run: | @@ -103,5 +103,5 @@ jobs: # commit and push git commit -a -m "Update to $NEW_VERSION" - - if: ${{ !github.event.inputs.dryRun }} + - if: ${{ github.event.inputs.dryRun == 'false' }} run: git push origin ${{ github.event.inputs.referenceBranch }}