Skip to content

Commit 15e4099

Browse files
committed
Add draft release
1 parent fe5f733 commit 15e4099

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/draft-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Draft release'
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version_strategy:
7+
description: 'Version strategy: The strategy to used to update the version based on semantic versioning (more info at https://semver.org/).'
8+
required: true
9+
default: 'patch'
10+
type: 'choice'
11+
options:
12+
- 'major'
13+
- 'minor'
14+
- 'patch'
15+
16+
jobs:
17+
draft-release:
18+
name: 'Draft release'
19+
uses: 'google-github-actions/.github/.github/workflows/draft-release.yml@v0'
20+
with:
21+
version_strategy: '${{ github.event.inputs.version_strategy }}'
22+
# secrets must be explicitly passed to reusable workflows https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow
23+
secrets:
24+
ACTIONS_BOT_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

0 commit comments

Comments
 (0)