-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
52 lines (52 loc) · 1.72 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
name: bump-request
description: Create a pull request that bumps version.
inputs:
command:
description: Shell command for modifying files that contain versions such as package.json, Catgo.toml, etc.
required: false
github_token:
description: GitHub access token.
required: false
release_type:
description: How to bump the version. One of `major`, `minor`, `patch`.
required: false
version:
description: You can also specify this directly instead of `release_type`.
required: false
runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: r7kamura/bump-request
path: bump-request
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno run --allow-all bump-request/src/detectNextVersion.ts
env:
BUMP_REQUEST_INPUTS_RELEASE_TYPE: ${{ inputs.release_type }}
BUMP_REQUEST_INPUTS_VERSION: ${{ inputs.version }}
GITHUB_TOKEN: ${{ inputs.github_token || github.token }}
shell: bash
id: detect_next_version
- if: inputs.command
run: |
${{ inputs.command }}
env:
VERSION: ${{ steps.detect_next_version.outputs.version }}
shell: bash
- if: ${{ !inputs.command }}
run: deno run --allow-all bump-request/src/changeVersion.ts
env:
BUMP_REQUEST_VERSION: ${{ steps.detect_next_version.outputs.version }}
shell: bash
- run: deno run --allow-all bump-request/src/createPullRequest.ts
env:
BUMP_REQUEST_VERSION: ${{ steps.detect_next_version.outputs.version }}
GITHUB_TOKEN: ${{ inputs.github_token || github.token }}
shell: bash
branding:
color: blue
icon: git-pull-request