-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (51 loc) · 1.71 KB
/
bumpVersion.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
on:
push:
branches: [ develop ]
paths-ignore:
- pyproject.toml
- laboratory/__init__.py
- .github/**/*
- '!.github/workflows/bumpVersion.yml'
- CHANGELOG.md
- README.md
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Update Version
jobs:
createPullRequestWithNewVersion:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Bump version
run: make version_updater
- id: version_var
run: |
version=`./current-version.sh`
echo "::set-output name=version::$version"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.CPR_SEC }}
commit-message: Bump version to ${{ steps.version_var.outputs.version }}
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
draft: false
title: Bump version
delete-branch: true
labels: |
automated pr
reviewers: moodpulse
base: develop
body: |
Bump version L2 to ${{ steps.version_var.outputs.version }}
- ${{ steps.version_var.outputs.version }}
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"