Skip to content

Commit

Permalink
Merge pull request #397 from baynezy/feature/issue-396-version
Browse files Browse the repository at this point in the history
Replace version management to AfterLife solution
  • Loading branch information
baynezy authored May 7, 2024
2 parents ceebfef + ecd1296 commit 8e17620
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/branch-hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,13 @@ jobs:
run: |
echo "patch_version=$(($(cat semver.json | jq -r '.patch')+1))" > $GITHUB_OUTPUT
- name: Store New Version
uses: RadovanPelka/github-action-json@v1.0.2
uses: Afterlife-Guide/SemVer.Action@1.0.3.8
with:
path: semver.json
replaceWith: |
{
"major": "${{ needs.get-version.outputs.major }}",
"minor": "${{ needs.get-version.outputs.minor }}",
"patch": "${{ steps.increment_version.outputs.patch_version }}",
"build": "${{ github.run_number }}"
}
major-version: ${{ needs.get-version.outputs.major }}
minor-version: ${{ needs.get-version.outputs.minor }}
patch-version: ${{ steps.increment_version.outputs.patch_version }}
build-version: ${{ github.run_number }}
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@3.0.0
with:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ jobs:
run: git checkout -b release/${{ github.event.inputs.major_version }}.${{ github.event.inputs.minor_version }}.${{ github.event.inputs.patch_version }}.${{ github.run_number }}

- name: Update Version Number
uses: RadovanPelka/github-action-json@v1.0.2
uses: Afterlife-Guide/SemVer.Action@1.0.3.8
with:
path: semver.json
replaceWith: |
{
"major": "${{ github.event.inputs.major_version }}",
"minor": "${{ github.event.inputs.minor_version }}",
"patch": "${{ github.event.inputs.patch_version }}",
"build": "${{ github.run_number }}"
}
major-version: ${{ github.event.inputs.major_version }}
minor-version: ${{ github.event.inputs.minor_version }}
patch-version: ${{ github.event.inputs.patch_version }}
build-version: ${{ github.run_number }}

- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/step-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@v4
- name: Get Version
id: get-version
uses: RadovanPelka/github-action-json@v1.0.2
uses: Afterlife-Guide/SemVer.Action@1.0.3.8
with:
path: 'semver.json'
- id: set-version
Expand Down
4 changes: 3 additions & 1 deletion .idea/.idea.Html2Markdown/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e17620

Please sign in to comment.