-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (40 loc) · 1.16 KB
/
create-version-tag-manually.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Create version tag manually
on:
workflow_dispatch:
branches: [main]
inputs:
stage:
description: 'Stage'
required: true
default: 'alpha-patch'
type: choice
options:
- 'alpha-major'
- 'alpha-minor'
- 'alpha-patch'
- 'beta'
- 'rc'
- 'final'
jobs:
create-version-tag-manually:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 20
- name: Extract parameters from selected choice
id: extract-parameters
run: ./.github/scripts/extract_parameters.sh ${{ github.event.inputs.stage }}
shell: bash
- name: Generate Tag
uses: gradle/gradle-build-action@v3
with:
arguments: createSemverTag "-Psemver.scope=${{ steps.extract-parameters.outputs.scope }}" "-Psemver.stage=${{ steps.extract-parameters.outputs.stage }}"
- name: Push Tag
run: git push --follow-tags