Skip to content

Commit 75016ab

Browse files
Create calculate-next-version.yml
1 parent 229ebd0 commit 75016ab

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Calculate Next Version
2+
on:
3+
workflow_call:
4+
outputs:
5+
version:
6+
description: "The next version formatted to use with release-drafter"
7+
value: ${{ format('{0}', jobs.calculate_next_version.outputs.version) }}
8+
version-unformatted:
9+
description: "The next version"
10+
value: ${{ jobs.calculate_next_version.outputs.version }}
11+
12+
jobs:
13+
calculate_next_version:
14+
name: Calculate next release version
15+
runs-on: ubuntu-latest
16+
outputs:
17+
version: ${{ steps.version.outputs.next-version }}
18+
steps:
19+
- name: Run version drafter
20+
id: version
21+
uses: patrickjahns/version-drafter-action@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)