Skip to content

Commit

Permalink
V2/semver action (#109)
Browse files Browse the repository at this point in the history
* Add semantic version GitHub action
  • Loading branch information
EmadMokhtar authored Apr 21, 2024
1 parent 7f04b00 commit 4bc7361
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- main
- v2/master
pull_request:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- main
- v2/master
pull_request:

permissions:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/semver-lable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Semantic Versioning Label

on:
push:
branches:
- v2/master

jobs:
semver_tag_from_pr:
# permissions required to find PR for last commit and push the new tag
permissions:
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0" # we need full git-history to determine the last semVer tag
ssh-key: ${{ secrets.semver_github_action }}
- name: bump semVer
uses: simontheleg/semver-tag-from-pr-action@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_ssh_key: ${{ secrets.SEMVER_GITHUB_ACTION_PRIVATE }}

0 comments on commit 4bc7361

Please sign in to comment.