Skip to content

Merge pull request #2 from invopop/nats-jwt #10

Merge pull request #2 from invopop/nats-jwt

Merge pull request #2 from invopop/nats-jwt #10

Workflow file for this run

name: Auto-Version
on:
push:
branches:
- main
jobs:
tag:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Get Repo Details
run: |
echo "COMMIT_TYPE=$(echo $GITHUB_REF | cut -d / -f 2)" >> $GITHUB_ENV
echo "REPO_NAME=$(echo $GITHUB_REPOSITORY | cut -d / -f 2-)" >> $GITHUB_ENV
echo "REPO_VERSION=$(echo $GITHUB_REF | cut -d / -f 3-)" >> $GITHUB_ENV
- name: Bump version and push tag
id: bump
if: env.COMMIT_TYPE != 'tags'
uses: anothrNick/github-tag-action@1.52.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCHES: main
WITH_V: true