Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qinqon authored Feb 3, 2022
1 parent 25824b8 commit 8f6e842
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,21 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
- name: Check out code from ${{ github.event.inputs.baseBranch }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.baseBranch }}
fetch-depth: 0
- name: Pull latest of latest branch
run: git pull --ff-only --rebase origin ${{ github.event.inputs.baseBranch }}
- name: Tag a ${{ github.event.inputs.versionLevel }} version
run: make version-${{ github.event.inputs.versionLevel }}
- name: Retrieve last tag
uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- name: Bump version with level ${{ github.event.inputs.baseBranch }}
uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
level: ${{ github.event.inputs.versionLevel }}
- name: Push the new version
uses: actions-ecosystem/action-push-tag@v1
with:
tag: ${{ steps.bump-semver.outputs.new_version }}

0 comments on commit 8f6e842

Please sign in to comment.