-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
41 lines (39 loc) · 1.32 KB
/
action.yml
File metadata and controls
41 lines (39 loc) · 1.32 KB
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
name: 'Universal Version Bump'
description: 'A GitHub Action to automatically bump versions across any app (Node, Python, PHP, Docker, etc.)'
author: 'Taj'
branding:
icon: 'chevrons-up'
color: 'blue'
inputs:
release_type:
description: 'Select the version bump type (patch, minor, major)'
required: true
default: 'patch'
git_tag:
description: 'Whether to create a Git tag after bump'
required: false
default: 'false'
target_platform:
description: 'Explicitly specify the platform to update (e.g., node, python). If not provided, the platform will be detected automatically.'
required: false
default: ''
target_path:
description: 'The target path where the version bump should be applied. If not provided, the action will run in the root directory.'
required: false
default: '.'
bump_targets:
description: |
Optional list of version update targets.
Provide the `path` and the `variable` to update, the Action will build regex automatically.
Example:
'[{"path": "setup.py", "variable": "version"}, {"path": "Dockerfile", "variable": "APP_VERSION"}]'
required: false
default: '[]'
outputs:
new_version:
description: 'The new bumped version'
tag:
description: 'The created Git tag (if enabled)'
runs:
using: 'node20'
main: 'dist/index.js'