GitHub Action to check wether your project version was updated in pull-request or a single commit
MIT License
Action functionality:
pom.xml
- check for the first <version>...</version>
package.json
- check for the first "version": "..."
versionpackage-lock.json
- check for the first "version": "..."
versionREADME.md
readme-version-badge
- check for the https://*.+/badge/version-...
versionreadme-nexus-badge
- check for the https://*.+/badge/nexus-...
versionreadme-changelog
- check for the - **...**
versionreadme-action
- check for the <current-repo-name>@...
versionggrep
through homebrew
, hence it works slower than on UbuntuREADME.md
standard optionreadme-badge
checkreadme-changelog
checkpackage-lock.json
file supportreadme-action
label supportreadme-badge
labelreadme-changelog
versionchange-only-for
array-splitreadme-action
labelreadme-badge
option to readme-version-badge
readme-nexus-badge
optionsrc/check.sh
as a runnable programMake sure to check out first since the script needs some files to check.
check-version-sh action will exit with success code 0
if check
check-only-for
option) files were successfulAnd with fail code 1
if check
check-only-for
option) failsgit diff
See action.yml or info.sh.
log-level
- logging level that will be used by the shell script
check-only-for
- a list of coma or space separated labels to check forjobs:
# ...
steps:
# ...
- name: Check Version Changes
uses: sivkovych/[email protected]
with:
log-level: "INFO"
check-only-for: "pom.xml, package.json, readme-version-badge"
# ...