Skip to content

Commit

Permalink
Merge pull request #82 from harrisoncramer/add-tagging
Browse files Browse the repository at this point in the history
Adds Tagging Workflow and bumps to #major version
  • Loading branch information
harrisoncramer authored Nov 17, 2023
2 parents 2dce16f + 9c59409 commit 7e998b6
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tag + Bump Version
on:
push:
branches:
- main
jobs:
build_tags:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Run action
id: taggerDryRun
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DRY_RUN: true
- name: Echo new tag
run: |
echo "The next tag version will be: ${{ steps.taggerDryRun.outputs.new_tag }}"
- name: Echo change version type
run: |
echo "The version increment was: ${{ steps.taggerDryRun.outputs.part }}"
# BUILD HERE, WILL ONLY EXECUTE IF PREVIOUS STEPS SUCCEEDED
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
WITH_V: true
PRERELEASE: false

0 comments on commit 7e998b6

Please sign in to comment.