Skip to content

Commit

Permalink
Switch to different tagging action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jademalo committed Jul 14, 2022
1 parent e6a96ee commit d1c5a3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ jobs:
# which is useful for controlling the length of the automated changelog
fetch-depth: 50

# Checkout the latest tag to prevent the duplicate run check
- name: Checkout latest tag
run: |
git fetch --tags
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag
# once cloned, we just run the GitHub Action for the packager project
- name: Package and Release
uses: BigWigsMods/packager@v2
22 changes: 12 additions & 10 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ jobs:
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.36.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
create_annotated_tag: true

tag_manual:
if: "${{ github.event.inputs.bumpLevel != '' }}"
runs-on: ubuntu-latest
Expand All @@ -38,8 +39,9 @@ jobs:
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.36.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: ${{ inputs.bumpLevel }}
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
create_annotated_tag: true
default_bump: ${{ inputs.bumpLevel }}

0 comments on commit d1c5a3a

Please sign in to comment.