Skip to content

Update dotnet.yml

Update dotnet.yml #9

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Get Version Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler otherwise, read permission is required at least
pull-requests: write
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
steps:
- name: Get version
run: |
echo VERSION=${{ github.event.release.tag_name }} >> $GITHUB_ENV
- name: Print
run: |
echo "${{ env.VERSION }}"