mirror of
https://github.com/codex-team/editor.js
synced 2024-05-18 06:16:47 +02:00
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:
parent
6385ab2a39
commit
5515c3b534
|
@ -32,12 +32,11 @@ jobs:
|
||||||
uses: codex-team/action-nodejs-package-info@v1
|
uses: codex-team/action-nodejs-package-info@v1
|
||||||
|
|
||||||
# Stop workflow and do not bump version if it was changed already
|
# 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
|
- name: Stop workflow if version was changed already
|
||||||
uses: actions/github-script@v3
|
uses: styfle/cancel-workflow-action@0.12.0
|
||||||
if: steps.packageOld.outputs.version != steps.packageNew.outputs.version
|
if: steps.packageOld.outputs.version != steps.packageNew.outputs.version
|
||||||
with:
|
with:
|
||||||
script: |
|
workflow_id: ${{ github.run_id }}
|
||||||
core.setFailed('Version was changed! ${{ steps.packageOld.outputs.version }} -> ${{ steps.packageNew.outputs.version }}')
|
|
||||||
|
|
||||||
bump-version:
|
bump-version:
|
||||||
needs: check-for-no-version-changing
|
needs: check-for-no-version-changing
|
||||||
|
|
Loading…
Reference in a new issue