generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
54 lines (46 loc) · 1.5 KB
/
action.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
name: Bump version for doc
description: Bump version for doc
inputs:
new_version:
description: New version
required: true
version_file:
description: Version file
default: exchange.json
committer:
description: Committer for the pull request
required: true
assignees:
description: Assignees for the pull request
github_token:
description: GitHub token to create the pull request
required: true
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set the new version in ${{ inputs.version_file }}
shell: bash
run: |
sed -i "s/\"version\": \".*\"/\"version\": \"${{ inputs.new_version }}\"/" ${{ inputs.version_file }}
cat ${{ inputs.version_file }}
- name: Create the pull request
uses: peter-evans/create-pull-request@v6
with:
assignees: ${{ inputs.assignees }}
token: ${{ inputs.github_token }}
commit-message: "[skip ci] Bump version to ${{ inputs.new_version }}"
committer: ${{ inputs.committer }}
branch: chore/bump-version-to-${{ inputs.new_version }}
delete-branch: true
title: "[Chore] Bump version to ${{ inputs.new_version }}"
labels: |
type : chore
body: |
## What happened 👀
Bump version to ${{ inputs.new_version }}
## Insight 📝
Automatically created by the Bump Version workflow.
## Proof Of Work 📹
On the Files changed tab