mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
Set workflow status to skipped if same version published (#2539)
* Made a step that cancels a workflow, settings it's status to 'skipped' * Fixed accidentally removed files * Fix: returned deleted submodules
This commit is contained in:
parent
5e8fe06dd6
commit
531ab06f63
5
.github/workflows/create-a-release-draft.yml
vendored
5
.github/workflows/create-a-release-draft.yml
vendored
|
@ -36,11 +36,10 @@ jobs:
|
|||
|
||||
# Stop workflow if version was not changed
|
||||
- name: Stop workflow if version was not changed
|
||||
uses: actions/github-script@v3
|
||||
uses: styfle/cancel-workflow-action@0.12.0
|
||||
if: steps.packageOld.outputs.version == steps.packageNew.outputs.version
|
||||
with:
|
||||
script: |
|
||||
core.setFailed('No version changes. ${{ steps.packageOld.outputs.version }}')
|
||||
workflow_id: ${{ github.run_id }}
|
||||
|
||||
# Create a new draft release
|
||||
release-draft:
|
||||
|
|
Loading…
Reference in a new issue