-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7798a7
commit e7d5167
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
push: | ||
branches: | ||
- master | ||
- main | ||
- v2/master | ||
pull_request: | ||
|
||
|
@@ -78,12 +77,23 @@ jobs: | |
name: Bump tag version (semver) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v4 | ||
- name: Bump version and push tag | ||
uses: hennejg/[email protected] | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create a GitHub release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ steps.tag_version.outputs.new_tag }} | ||
name: Release ${{ steps.tag_version.outputs.new_tag }} | ||
body: ${{ steps.tag_version.outputs.changelog }} | ||
dry_run: true | ||
default_bump: patch | ||
tag_prefix: v | ||
release_branches: master, v2/master | ||
- name: Echo variables | ||
run: | | ||
echo "The value of new_tag is ${{ steps.tag_version.outputs.new_tag }}" | ||
echo "The value of new_version is ${{ steps.tag_version.outputs.new_version }}" | ||
echo "The value of previous_tag is ${{ steps.tag_version.outputs.previous_tag }}" | ||
echo "The value of previous_version is ${{ steps.tag_version.outputs.previous_version }}" | ||
echo "The value of release_type is ${{ steps.tag_version.outputs.release_type }}" |