Skip to content

Commit

Permalink
Try version bump: take 3
Browse files Browse the repository at this point in the history
  • Loading branch information
EmadMokhtar committed Apr 28, 2024
1 parent f7798a7 commit e7d5167
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- main
- v2/master
pull_request:

Expand Down Expand Up @@ -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/github-tag-action@v4.1.jh1
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
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 }}"

0 comments on commit e7d5167

Please sign in to comment.