actions-marketplace-validations/Project context

Build project context and synchronize project version

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Aug 5, 2024
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/zero88_gh-project-context@f18a0d15c231ca76c18ab18c131a19500bb7d88f # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
defaultBranchProject default branchnomain
tagPrefixGit Tag Prefixnov
hotfixPrefixGit Hotfix Prefixnohotfix/
releaseBranchPrefixGit Release Branch Prefixnorelease/
mergedReleaseMsgRegexMerged release message regexno^Merge pull request #[0-9]+ from .+/release/.+$
patternsProject patterns to search/replace version. Format: <glob_pattern_with_ext>::<version_regex>::<regex_group>nopyproject.toml::(version\s?=\s?)(")([^"]+)(")::2 package?(-lock).json::("version"\s?:\s?)(")([^"]+)(")::2 @(gradle|maven|pom|project).properties::(version\s?=\s?)(.+)::1 @(application|version).yml::(version:\s)(.+)::1 @(VERSION|version)?(.txt)::.+::0
shaLengthCreate output short commit id within length. Default is 7no7
allowCommitCI: Allow git commit to fix version if not matchnotrue
allowTagCI: Allow git tag if merged release branchnotrue
userNameCI: Username to commit. Skip if any config visible in Runner git confignoci-bot
userEmailCI: User email to commit. Skip if any config visible in Runner git confignoactions@github.com
mustSignCI: Required GPG sign when git commit/tagnofalse
prefixCiMsgCI: Prefix bot messageno<ci-auto-commit>
correctVerMsgCI: Correct version commit message templatenoCorrect version
releaseVerMsgCI: Release version commit message templatenoRelease version
nextVerMsgCI: Next version commit message templatenoNext version
nextVerModeCI: Next version mode to choose for upgrading version after merged release PR. One of: MAJOR|MINOR|PATCH|NONEnoNONE
tokenGitHub token to query GitHub API, that is used in changelog generator and Pull Request creatorno
dryCI: Dry run. If `true`, action will run without do modify files or git commit/tagyesfalse
changelogEnable generate CHANGELOGnofalse
changelogImageCHANGELOG docker image tag: https://github.com/github-changelog-generator/docker-github-changelog-generatornogithubchangeloggenerator/github-changelog-generator:1.16.2
changelogConfigFileCHANGELOG config file: https://github.com/github-changelog-generator/github-changelog-generator#params-fileno.github_changelog_generator
changelogTokenCHANGELOG token to query GitHub API: https://github.com/github-changelog-generator/github-changelog-generator#github-tokenno
changelogMsgCI: Changelog generator commit message templatenoGenerated CHANGELOG
namedescription
branchCurrent branch name or tag name
onDefaultBranchCheck whether current event is on default branch or not
onReleaseCheck whether current event is on default branch or not
isBranchCheck whether current event is on branch or not
isPRCheck whether current event is on pull request or not
isTagCheck whether current event is on ref tag
isScheduleCheck whether current event is by schedule or not
isDispatchCheck whether current event is by manual or dispatch from another workflow or event from repository
isReleaseCheck whether current event is release event on regardless of branch, pull-request or tag
isHotfixCheck whether current event is hotfix event on regardless of branch, pull-request or tag
isAfterMergedReleasePRCheck whether current event is a merged commit after merged release pull request into default branch or not
isMergedCheck whether current event is merged PR
isClosedCheck whether current event is close PR but not merged into target branch
isOpenedCheck whether current event is open PR or create branch
prBaseBranchBase branch in pull request
commitMsgThe latest commit message
commitIdThe latest commit id
commitShortIdThe latest short commit id
versionCurrent tag version or release version
ci_mustFixVersionCI: Need to fix version to match with release name
ci_needPullRequestCI: Need to open new pull request for release or merge hotfix into default branch
ci_needTagCI: Need to tag new version if release branch is merged
ci_needUpgradeCI: Need to upgrade next version after release branch is merged into default branch
ci_isPushedCI: Check whether if auto commit is pushed to remote
ci_commitIdCI: auto commit id
ci_commitMsgCI: auto commit message
ci_changelog_generatedCI: changelog is generated
ci_changelog_releaseTagCI: changelog generated for release tag
ci_changelog_sinceTagCI: changelog generated since tag
ci_changelog_isCommittedCI: changelog is committed
ci_changelog_commitIdCI: changelog auto commit id
ci_changelog_commitMsgCI: changelog auto commit message
decision_buildShould run the next step: such as build & test Default value is: `!(ciPushed || isClosed || isMerged || (isBranch && (isRelease || isOpened)) || isAfterMergedReleasePR)`
decision_publishShould publish artifact: such as push artifact to any registry: npm, docker, maven, pypi.. Default value is: `decision.build && (onDefaultBranch || (isRelease && isTag))`
ver_currentCurrent version in configuration file or tag/release version
ver_bumpedBumped version
ver_nextMajorSuggest next major version if after release and ver_current is compatible with semver
ver_nextMinorSuggest next minor version if after release and ver_current is compatible with semver
ver_nextPatchSuggest next patch version if after release and ver_current is compatible with semver