-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathaction.yml
More file actions
25 lines (25 loc) · 1.08 KB
/
action.yml
File metadata and controls
25 lines (25 loc) · 1.08 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
name: Project Version check (Maven, NodeJS...)
description: Checks if the project version has been updated
branding:
icon: "check-circle"
color: "green"
inputs:
token:
description: 'The repository token is used to request the target branch `file-to-check`-file from the [GitHub API](https://developer.github.com/v3/repos/contents/#get-contents)'
required: true
file-to-check:
description: 'Filename (with path) that must contain the project version update (examples: pom.xml, package.json, version.txt)'
required: true
additional-files-to-check:
description: 'Comma separated list of filenames (with path) that must contain the same version as "file-to-check" (examples: README.md, src/file-with-version.txt)'
required: false
only-return-version:
description: 'Is used to disable the whole version check and only return the project version as output for usage in other actions'
default: 'false'
required: false
outputs:
version:
description: If the version update is valid then the new version is returned
runs:
using: 'node20'
main: 'dist/index.js'