Skip to content

Commit

Permalink
Allow configuring the version increment
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Dec 13, 2023
1 parent deb69c6 commit ce61819
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/prepare-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ env:
PR_LABELS: 'Type: Release'
MILESTONE_PREFIX: 'Pods '
BRANCH_PREFIX: 'release/'
VERSION_INCREMENT: 'patch'
WPORG_PLUGIN_FILE: 'init.php'
WPORG_PLUGIN_VERSION_CONSTANT_NAME: 'PODS_VERSION'
on:
Expand All @@ -13,6 +12,15 @@ on:
new_plugin_version:
description: 'New plugin version (without the "-a-1"), defaults to the next incremental version from package.json'
required: false
version_increment:
description: 'Version increment scheme (if incrementing the package.json version)'
required: true
type: choice
default: 'patch'
options:
- 'major'
- 'minor'
- 'patch'
jobs:
prepare_release_branch:
runs-on: ubuntu-latest
Expand All @@ -38,7 +46,7 @@ jobs:
id: version-increment
with:
scheme: semver
increment: ${{ env.VERSION_INCREMENT }}
increment: ${{ github.event.inputs.version_increment }}
- name: Maybe store the next version
if: ${{ steps.version-increment.outputs.version != null && steps.version-increment.outputs.version != '' }}
shell: bash
Expand Down

0 comments on commit ce61819

Please sign in to comment.