mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 17:32:31 +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
|
# Stop workflow if version was not changed
|
||||||
- name: 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
|
if: steps.packageOld.outputs.version == steps.packageNew.outputs.version
|
||||||
with:
|
with:
|
||||||
script: |
|
workflow_id: ${{ github.run_id }}
|
||||||
core.setFailed('No version changes. ${{ steps.packageOld.outputs.version }}')
|
|
||||||
|
|
||||||
# Create a new draft release
|
# Create a new draft release
|
||||||
release-draft:
|
release-draft:
|
||||||
|
|
Loading…
Reference in a new issue