Skip to content

Commit

Permalink
Merge pull request #590 from hoogi91/feature/release-workflow
Browse files Browse the repository at this point in the history
Fix reading from semvers output
  • Loading branch information
hoogi91 authored Aug 12, 2024
2 parents ffe0911 + 4fb8ef2 commit ae31150
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
default: 'patch'
type: choice
options:
- major
- minor
- patch
- major
- minor
- patch
latest-release:
description: 'Is latest release?'
required: false
Expand All @@ -37,7 +37,7 @@ jobs:
version: ${{ steps.previoustag.outputs.tag }}
- id: bump-version
run: |
VERSION=${{ env[format('steps.semvers.outputs.{0}', inputs.type)] }}
VERSION=${{ steps.semvers.outputs[inputs.type] }}
sed -i -E "s/'[0-9]+.[0-9]+.[0-9]+'/'$VERSION'/g" ext_emconf.php
sed -i -E "s/[0-9]+.[0-9]+.[0-9]+/$VERSION/g" Documentation/Settings.cfg
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
Expand All @@ -52,7 +52,7 @@ jobs:
release:
runs-on: ubuntu-latest
environment: 'github'
needs: [bump-version]
needs: [ bump-version ]
steps:
- run: gh release edit ${{ steps.bump-version.outputs.version }} --draft=false
env:
Expand Down

0 comments on commit ae31150

Please sign in to comment.