Skip to content

Merge pull request #19 from Azure-Samples/katriendg/0.8-preview #15

Merge pull request #19 from Azure-Samples/katriendg/0.8-preview

Merge pull request #19 from Azure-Samples/katriendg/0.8-preview #15

Workflow file for this run

name: Create git tag
on:
push:
branches:
- main
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
Build-Code:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@a94a3b62ee018ef5346cb08fd0d63d93811fe691 # v3.0.0
with:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/execute@a94a3b62ee018ef5346cb08fd0d63d93811fe691 # v3.0.0
with:
useConfigFile: true
- name: Create git tag
run: |
git tag ${{ env.GitVersion_MajorMinorPatch }}
if: github.ref == 'refs/heads/main'
- name: Push git tag
run: git push origin ${{ env.GitVersion_MajorMinorPatch }}
if: github.ref == 'refs/heads/main'