-
Notifications
You must be signed in to change notification settings - Fork 370
67 lines (63 loc) · 2.26 KB
/
tag.yaml
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
67
name: Triggered by set Tag
on:
push:
tags:
- setRelease-v**
jobs:
taginfos:
name: get Tag infos
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-release-info.outputs.version }}
versionTag: ${{ steps.get-release-info.outputs.versionTag }}
prBranch: ${{ steps.get-release-info.outputs.prBranch }}
BASE: ${{ steps.get-branch.outputs.branch }}
steps:
- name: checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: extract branch
id: get-branch
uses: hyperledger/indy-shared-gha/.github/actions/branch-from-tag@v1
with:
tag: ${{ github.ref }}
- name: get-release-info
id: get-release-info
uses: hyperledger/indy-shared-gha/.github/actions/get-release-info@v1
with:
versionString: "${{ github.ref }}"
bump_version:
name: Bump Version Number
needs: taginfos
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install deps for version change
run: pip install base58 \
importlib_metadata==3.10.1 \
packaging \
python-dateutil \
msgpack-python \
jsonpickle=3.0.3
- name: Prepare package and set version
run: |
./bump_version.sh ${{ needs.taginfos.outputs.VERSION }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
author: ${{ github.actor }} <${{ github.event.pusher.email }}>
committer: ${{ github.actor }} <${{ github.event.pusher.email }}>
signoff: true
commit-message: Update Version number for v${{ needs.taginfos.outputs.version }}
base: ${{ needs.taginfos.outputs.BASE }}
branch: ${{ needs.taginfos.outputs.prBranch }}
title: "[${{ needs.taginfos.outputs.versionTag }}] - Update Version Number for Release"
body: "[${{ needs.taginfos.outputs.versionTag }}] - Update Version number for Release"
delete-branch: true
token: ${{ secrets.BOT_PR_PAT }}