78 lines
2.6 KiB
YAML
78 lines
2.6 KiB
YAML
name: Bump ERP app version
|
|
description: Bump a Frappe/ERPNext app version on a release branch using bump-my-version
|
|
inputs:
|
|
config-file:
|
|
description: Path to the bump-my-version TOML configuration
|
|
required: false
|
|
default: pyproject.toml
|
|
base-branch:
|
|
description: Branch whose version is used as the release baseline
|
|
required: false
|
|
default: main
|
|
target-branch:
|
|
description: Checked-out branch that receives the version commit
|
|
required: false
|
|
default: develop
|
|
bump:
|
|
description: Version component passed to bump-my-version
|
|
required: false
|
|
default: patch
|
|
remote:
|
|
description: Git remote used to fetch and push
|
|
required: false
|
|
default: origin
|
|
commit-message:
|
|
description: Commit message; {version} is replaced with the new version
|
|
required: false
|
|
default: "chore(release): prepare v{version}"
|
|
git-user-name:
|
|
description: Author and committer name for the version commit
|
|
required: false
|
|
default: ERP App Release Bot
|
|
git-user-email:
|
|
description: Author and committer email for the version commit
|
|
required: false
|
|
default: actions@localhost
|
|
bump-my-version-version:
|
|
description: Pinned bump-my-version package version to install
|
|
required: false
|
|
default: "1.5.1"
|
|
push:
|
|
description: Push the version commit to target-branch
|
|
required: false
|
|
default: "true"
|
|
outputs:
|
|
bumped:
|
|
description: Whether this run created a version commit
|
|
value: ${{ steps.bump.outputs.bumped }}
|
|
previous-version:
|
|
description: Version before this action ran
|
|
value: ${{ steps.bump.outputs.previous-version }}
|
|
current-version:
|
|
description: Version after this action ran
|
|
value: ${{ steps.bump.outputs.current-version }}
|
|
commit:
|
|
description: Created commit SHA, or an empty string when no bump was needed
|
|
value: ${{ steps.bump.outputs.commit }}
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Compare, bump, commit, and push
|
|
id: bump
|
|
shell: bash
|
|
env:
|
|
INPUT_CONFIG_FILE: ${{ inputs.config-file }}
|
|
INPUT_BASE_BRANCH: ${{ inputs.base-branch }}
|
|
INPUT_TARGET_BRANCH: ${{ inputs.target-branch }}
|
|
INPUT_BUMP: ${{ inputs.bump }}
|
|
INPUT_REMOTE: ${{ inputs.remote }}
|
|
INPUT_COMMIT_MESSAGE: ${{ inputs.commit-message }}
|
|
INPUT_GIT_USER_NAME: ${{ inputs.git-user-name }}
|
|
INPUT_GIT_USER_EMAIL: ${{ inputs.git-user-email }}
|
|
INPUT_BUMP_MY_VERSION_VERSION: ${{ inputs.bump-my-version-version }}
|
|
INPUT_PUSH: ${{ inputs.push }}
|
|
run: ${{ github.action_path }}/scripts/bump.sh
|
|
branding:
|
|
icon: chevrons-up
|
|
color: blue
|