Skip to content
Merged

Sync #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,43 +20,34 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Perform semantic version
uses: paulhatch/semantic-version@v5.4.0
id: versioning
- name: Generate Next Tag
uses: AcmeSoftwareLLC/semver-tag@v1
id: semver
with:
tag_prefix: v
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"
version_format: "${major}.${minor}.${patch}-rc"
bump_each_commit: false
search_commit_body: true
namespace: rc
token: ${{ secrets.GITHUB_TOKEN }}
level: patch

- name: Bump version and push tag
id: tag_version
id: tag_action
uses: mathieudutour/github-tag-action@v6.2
with:
custom_tag: ${{ steps.versioning.outputs.version_tag }}
tag_prefix: ""
custom_tag: ${{ steps.semver.outputs.next_tag }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v5
with:
fromTag: v${{ steps.versioning.outputs.previous_version }}
toTag: ${{ steps.tag_version.outputs.new_tag }}
fromTag: v${{ steps.semver.outputs.prev_tag }}
toTag: ${{ steps.tag_action.outputs.new_tag }}
fetchReviewers: true

- name: Create production release
- name: Create dev release
uses: ncipollo/release-action@v1
id: release
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.versioning.outputs.version_tag }}
tag: ${{ steps.tag_action.outputs.new_tag }}
name: ${{ steps.tag_action.outputs.new_tag }}
body: ${{ steps.changelog.outputs.changelog }}
commit: ${{ steps.versioning.outputs.current_commit }}
prerelease: true
32 changes: 12 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,33 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Perform semantic version
uses: paulhatch/semantic-version@v5.4.0
id: versioning
- name: Generate Next Tag
uses: AcmeSoftwareLLC/semver-tag@v1
id: semver
with:
tag_prefix: v
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"
version_format: "${major}.${minor}.${patch}"
bump_each_commit: false
search_commit_body: true
token: ${{ secrets.GITHUB_TOKEN }}
level: minor

- name: Bump version and push tag
id: tag_version
id: tag_action
uses: mathieudutour/github-tag-action@v6.2
with:
custom_tag: ${{ steps.versioning.outputs.version_tag }}
tag_prefix: ""
custom_tag: ${{ steps.semver.outputs.next_tag }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v5
with:
fromTag: v${{ steps.versioning.outputs.previous_version }}
toTag: ${{ steps.tag_version.outputs.new_tag }}
fromTag: v${{ steps.semver.outputs.prev_tag }}
toTag: ${{ steps.tag_action.outputs.new_tag }}
fetchReviewers: true

- name: Create production release
- name: Create main release
uses: ncipollo/release-action@v1
id: release
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.versioning.outputs.version_tag }}
tag: ${{ steps.tag_action.outputs.new_tag }}
name: ${{ steps.tag_action.outputs.new_tag }}
body: ${{ steps.changelog.outputs.changelog }}
commit: ${{ steps.versioning.outputs.current_commit }}
29 changes: 17 additions & 12 deletions .github/workflows/pr-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,27 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Perform semantic version
uses: paulhatch/semantic-version@v5.4.0
id: versioning
- name: Determine Increment Level
id: increment
run: |
if [[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
echo "level=minor" >> $GITHUB_OUTPUT
elif [[ "${{ github.event.pull_request.base.ref }}" == "develop" ]]; then
echo "level=patch" >> $GITHUB_OUTPUT
else
echo "level=patch" >> $GITHUB_OUTPUT
fi

- name: Generate Next Tag
uses: AcmeSoftwareLLC/semver-tag@v1
id: semver
with:
tag_prefix: "v"
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"
version_format: "${major}.${minor}.${patch}-rc${increment}"
bump_each_commit: false
search_commit_body: true
token: ${{ secrets.GITHUB_TOKEN }}
level: ${{ steps.increment.outputs.level }}

- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
message: |
:rocket: The next version will be **${{ steps.versioning.outputs.version_tag }}** ! :rocket:
:rocket: The next version will be **${{ steps.semver.outputs.next_tag }}** ! :rocket:
Loading