-
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
b0e2786
commit 4ede8a3
Showing
1 changed file
with
17 additions
and
11 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 |
---|---|---|
|
@@ -6,16 +6,22 @@ on: | |
- v2/master | ||
|
||
jobs: | ||
semver_tag_from_pr: | ||
permissions: | ||
contents: write | ||
pull-requests: read | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: "0" # we need full git-history to determine the last semVer tag | ||
- name: bump semVer | ||
uses: simontheleg/[email protected] | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} # checkout the correct branch name | ||
fetch-depth: 0 # fetch the whole repo history | ||
|
||
- name: Git Version | ||
id: version | ||
uses: codacy/[email protected] | ||
|
||
- name: Use the version | ||
run: | | ||
echo ${{ steps.version.outputs.version }} | ||
- name: Use the previous version | ||
run: | | ||
echo ${{ steps.version.outputs.previous-version }} |