diff --git a/.github/workflows/bump-version-on-merge-next.yml b/.github/workflows/bump-version-on-merge-next.yml index 89298fae..d480e57c 100644 --- a/.github/workflows/bump-version-on-merge-next.yml +++ b/.github/workflows/bump-version-on-merge-next.yml @@ -32,12 +32,11 @@ jobs: uses: codex-team/action-nodejs-package-info@v1 # Stop workflow and do not bump version if it was changed already - - name: Stop workflow and do not bump version if it was changed already - uses: actions/github-script@v3 + - name: Stop workflow if version was changed already + uses: styfle/cancel-workflow-action@0.12.0 if: steps.packageOld.outputs.version != steps.packageNew.outputs.version with: - script: | - core.setFailed('Version was changed! ${{ steps.packageOld.outputs.version }} -> ${{ steps.packageNew.outputs.version }}') + workflow_id: ${{ github.run_id }} bump-version: needs: check-for-no-version-changing