-
Notifications
You must be signed in to change notification settings - Fork 312
66 lines (57 loc) · 2.01 KB
/
version-uptick.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Version uptick automation
on:
workflow_dispatch:
inputs:
target_branch:
type: string
default: 'develop'
required: true
uptick_config:
type: choice
description: Configuration to use for the uptick
options:
- uptick_major_on_develop_branch.yml
- uptick_minor_on_develop_branch.yml
- uptick_patch_on_maintenance_branch.yml
- uptick_snapshot_to_patch_release.yml
- uptick_snapshot_to_release.yml
required: true
jobs:
uptick:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.target_branch }}
- name: Download version upticker tool
uses: carlosperate/download-file-action@v1
with:
file-url: https://kura-repo.s3.us-west-2.amazonaws.com/esf_upticker_tool/version-uptick-0.2.0-linux-x86_64
- name: Make the uptick tool executable
run: |
chmod +x ./version-uptick-0.2.0-linux-x86_64
shell: bash
- name: Run the uptick tool
run: |
./version-uptick-0.2.0-linux-x86_64 \
--commit --trace process-versions \
--config-path .github/version_uptick_configs/${{ github.event.inputs.uptick_config }} \
--root-dir .
shell: bash
- name: Cleanup uptick tool
run: |
rm ./version-uptick-0.2.0-linux-x86_64
shell: bash
- name: Get version
id: get-version
uses: JActions/maven-version@v1.0.1
with:
pom: ./kura/pom.xml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: "chore: automated uptick to ${{ steps.get-version.outputs.version }}"
commit-message: "chore: automated uptick to ${{ steps.get-version.outputs.version }}"
body: "Automated changes by _Version uptick automation_ action: automated uptick to ${{ steps.get-version.outputs.version }} version"
branch-suffix: short-commit-hash