Skip to content

Commit 32ba009

Browse files
Update cd.yaml
1 parent 3be1c99 commit 32ba009

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/cd.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
push:
44
branches:
55
- master
6+
workflow_call:
7+
inputs:
8+
skip_github_release:
9+
description: 'Skip creating a GitHub release'
10+
type: boolean
11+
default: false
612
jobs:
713
extract_version:
814
runs-on: ubuntu-latest
@@ -24,6 +30,7 @@ jobs:
2430
runs-on: ubuntu-latest
2531
needs: extract_version
2632
name: Create release on GitHub
33+
if: ${{ github.event_name == 'push' || inputs.skip_github_release == false }}
2734
permissions:
2835
contents: write
2936
steps:
@@ -38,7 +45,7 @@ jobs:
3845
publish:
3946
name: Deploy to maven
4047
needs:
41-
- create_release
48+
- extract_version
4249
runs-on: ubuntu-latest
4350
steps:
4451
- name: Checkout code

0 commit comments

Comments
 (0)