Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
ci: update version bumper output keys
Browse files Browse the repository at this point in the history
Signed-off-by: Tomer Figenblat <tomer@tomfi.info>
  • Loading branch information
TomerFi committed Feb 9, 2024
1 parent c9144c0 commit 14dc169
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: >
mvn release:prepare release:perform -B -ff
-Dtag=${{ steps.bumper.outputs.new_version }}
-DreleaseVersion=${{ steps.bumper.outputs.new_version }}
-DdevelopmentVersion=${{ steps.bumper.outputs.next_dev_iteration}}
-Dtag=${{ steps.bumper.outputs.next }}
-DreleaseVersion=${{ steps.bumper.outputs.next }}
-DdevelopmentVersion=${{ steps.bumper.outputs.dev }}
- name: Create a release name
id: release_name
uses: actions/github-script@v7
with:
script: |
var retval = '${{ steps.bumper.outputs.new_version }}'
var retval = '${{ steps.bumper.outputs.next }}'
if ('${{ github.event.inputs.title }}') {
retval = retval.concat(' - ${{ github.event.inputs.title }}')
}
Expand All @@ -77,7 +77,7 @@ jobs:
script: |
const repo_name = context.payload.repository.full_name
const response = await github.request('POST /repos/' + repo_name + '/releases', {
tag_name: '${{ steps.bumper.outputs.new_version }}',
tag_name: '${{ steps.bumper.outputs.next }}',
name: '${{ steps.release_name.outputs.value }}',
generate_release_notes: true
})
Expand All @@ -86,15 +86,15 @@ jobs:
- name: Update readme usage section
run: >
sed -i
's/<version>.*<\/version>/<version>${{ steps.bumper.outputs.new_version }}<\/version>/g'
's/<version>.*<\/version>/<version>${{ steps.bumper.outputs.next }}<\/version>/g'
README.md
# yamllint disable rule:line-length
# editorconfig-checker-disable
- name: Push modifications
run: |
git add README.md
git commit -m "docs: updated usage section with ${{ steps.bumper.outputs.new_version }} [skip ci]"
git commit -m "docs: updated usage section with ${{ steps.bumper.outputs.next }} [skip ci]"
git push
# yamllint enable rule:line-length
# editorconfig-checker-enable

0 comments on commit 14dc169

Please sign in to comment.