Skip to content

Commit

Permalink
Merge pull request #123 from ritsec/9-semantic-version-of-new-merges-…
Browse files Browse the repository at this point in the history
…to-main

Semantic Version of New Merges to main
  • Loading branch information
c0untingNumbers authored Jul 13, 2024
2 parents 3f7ebce + cdc3bd7 commit 0623689
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/versioning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Bump version
on:
pull_request:
types:
- closed
branches:
- main

jobs:
if_merged:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'

- name: Bump version and push tag
id: tag_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
PRERELEASE: false
INITIAL_VERSION: 3.20.0

- name: Create GitHub Release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
generate_release_notes: true
prerelease: false

0 comments on commit 0623689

Please sign in to comment.