Skip to content

Commit

Permalink
workflows: ensure we increment the version for the new PR (#7280)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens authored Apr 27, 2023
1 parent e258aa0 commit 016bb6b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/staging-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -833,16 +833,24 @@ jobs:
if: startsWith(inputs.version, '2.0')
uses: actions/checkout@v3
with:
repository: fluent/fluent-bit-docs
ref: 2.0

- name: Release 2.1 and latest
if: startsWith(inputs.version, '2.1')
uses: actions/checkout@v3

# Get the new version to use
- name: 'Get next minor version'
id: semvers
uses: "WyriHaximus/github-action-next-semvers@v1"
with:
version: ${{ inputs.version }}
strict: true

- run: ./update-version.sh
shell: bash
env:
NEW_VERSION: ${{ inputs.version }}
NEW_VERSION: ${{ steps.semvers.outputs.patch }}
# Ensure we use the PR action to do the work
DISABLE_COMMIT: 'yes'

Expand Down

0 comments on commit 016bb6b

Please sign in to comment.