Skip to content

Commit c50cad0

Browse files
francois2metzstoecker
authored andcommitted
Add the release param to disable the release creation.
1 parent e468e43 commit c50cad0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ant.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ on:
5656
default: ''
5757
required: false
5858
description: "A variable used for developing the GitHub Action. See actions/checkout@v6."
59+
release:
60+
type: boolean
61+
default: true
62+
required: false
63+
description: "Perform the release creation if a tag is pushed"
5964
outputs:
6065
tag:
6166
description: "The release tag"
@@ -274,7 +279,7 @@ jobs:
274279
release:
275280
runs-on: ${{ inputs.operating-system }}
276281
needs: [create_tag, plugin-build, plugin-test, josm-build]
277-
if: ${{ startsWith(github.ref, 'refs/tags/') || inputs.perform-revision-tagging }}
282+
if: ${{ (startsWith(github.ref, 'refs/tags/') && inputs.release) || inputs.perform-revision-tagging }}
278283
steps:
279284
- name: Get build
280285
id: cache-plugin-build

0 commit comments

Comments
 (0)