Skip to content

Commit

Permalink
Add version update to release workflow (#24)
Browse files Browse the repository at this point in the history
Resolves #23
  • Loading branch information
OptimumCode committed Aug 1, 2023
1 parent a29b889 commit f7def15
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,27 @@ jobs:
body: ${{ steps.build_changelog.outputs.changelog }}
name: Release ${{ needs.version.outputs.RELEASE_VERSION }}
tag: ${{ needs.version.outputs.RELEASE_VERSION }}
token: ${{ secrets.PUSH_PAT }}
token: ${{ secrets.PUSH_PAT }}
update-version:
runs-on: ubuntu-latest
needs:
- create_release
- version
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
with:
token: ${{ secrets.PUSH_PAT }}
- name: Prepare next dev version
id: prepare_next_dev
run: |
sed -i -e 's/${{ needs.version.outputs.CURRENT_VERSION }}/${{ needs.version.outputs.NEXT_VERSION }}/g' gradle.properties
sed -i -E -e 's/json-schema-validator(:|\/)[0-9]+\.[0-9]+\.[0-9]+/json-schema-validator\1${{ needs.version.outputs.RELEASE_VERSION }}/g' README.md
sed -i -E -e 's/json-schema-validator(:|\/)[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)/json-schema-validator\1${{ needs.version.outputs.NEXT_VERSION }}/g' README.md
- name: Commit next dev version
id: commit_next_dev
uses: EndBug/add-and-commit@v9
with:
add: "['gradle.properties', 'README.md']"
default_author: github_actions
message: "Prepare next version"

0 comments on commit f7def15

Please sign in to comment.