feat: Skip workflow and do not bump version if it was changed already (#2555)

* Skip workflow and do not bump version if it was changed already

* Change comment

* Change action name
This commit is contained in:
Gusev Yaroslav 2023-12-09 19:57:03 +07:00 committed by GitHub
parent 6385ab2a39
commit 5515c3b534
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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