fix workflow

This commit is contained in:
Damien Ostler 2024-01-07 00:21:29 -05:00
parent bcb56f92cc
commit a15fc01c34
2 changed files with 21 additions and 4 deletions

View File

@ -7,7 +7,7 @@ on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- v* - main
jobs: jobs:
web: web:
@ -123,6 +123,17 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up GitVersion
uses: gittools/actions/gitversion/setup@v0.9.15
with:
versionSpec: '5.x'
- name: Execute GitVersion
uses: gittools/actions/gitversion/execute@v0.9.15
with:
useConfigFile: true
configFilePath: GitVersion.yml
- name: Get branch name - name: Get branch name
id: get_branch id: get_branch
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
@ -148,10 +159,10 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ env.BRANCH_NAME }} tag_name: env.GitVersion_MajorMinorPatch
release_name: ${{ env.BRANCH_NAME }} release_name: env.GitVersion_MajorMinorPatch
body: | body: |
Release notes for ${{ env.BRANCH_NAME }}. Release notes for env.GitVersion_MajorMinorPatch.
draft: false draft: false
prerelease: true prerelease: true

6
GitVersion.yml Normal file
View File

@ -0,0 +1,6 @@
assembly-versioning-scheme: MajorMinorPatchTag
mode: ContinuousDelivery
branches: {}
ignore:
sha: []
merge-message-formats: {}