-
Notifications
You must be signed in to change notification settings - Fork 27
30 lines (30 loc) · 1.1 KB
/
release_trigger.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
name: Trigger Release
on:
workflow_dispatch:
inputs:
updateType:
description: 'Post release version update type (minor is default)'
required: false
default: 'minor/patch/major'
env:
GITHUB_CLIENT_MIXPANEL_API_KEY: ${{ secrets.MIXPANEL_KEY }}
JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
jobs:
create_tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Create Release and Bump version
env:
TOKEN_GITHUB_API: ${{ secrets.CI_GITHUB_TOKEN }}
run: ./gradlew createNewReleaseAndBumpVersion -PupdateType=${{ github.event.inputs.updateType }} --stacktrace
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.CI_GITHUB_TOKEN }}
message: 'release-bot: Bump version for next release'
branch: 'master'