Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NikRimington authored Dec 17, 2023
1 parent 2079f1b commit cd88686
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set Version Variable
- name: Set Version Variable from tag
if: ${{ github.ref_type == 'tag' }}
env:
TAG: ${{ github.ref_name }}
run: echo "VERSION=${TAG#v}-beta${{github.run_number}}" >> $GITHUB_ENV

- name: Set Version Variable from tag
if: ${{ !(github.ref_type == 'tag') }}
env:
TAG: ${{ github.ref_name }}
run: echo "VERSION=0.1.0-pre${{github.run_number}}" >> $GITHUB_ENV

- name: Setup .NET 6
uses: actions/setup-dotnet@v2
with:
Expand Down

0 comments on commit cd88686

Please sign in to comment.