mirror of
https://github.com/codex-team/editor.js
synced 2024-05-04 23:53:21 +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
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue