Skip to content

Commit

Permalink
Bashify 2
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-andersson-at-westermo committed Mar 11, 2024
1 parent fe1e762 commit 8f05237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
with:
dotnet-version: "8.0.x"
- run: |
if [[ "${{ github.event_name }}" == "release" && "${{ github.ref_name }}" =~ ^(?<version>\d+\.\d+\.\d+) ]]; then
if [[ "$GITHUB_EVENT_NAME" == "release" && "$GITHUB_REF" =~ ^refs/tags/(?<version>\d+\.\d+\.\d+) ]]; then
echo "VERSION=${BASH_REMATCH[version]}" >> $GITHUB_ENV
echo "FILE_VERSION=${BASH_REMATCH[version]}.0" >> $GITHUB_ENV
echo "INFORMAL_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
echo "INFORMAL_VERSION=main" >> $GITHUB_ENV
else
echo "VERSION=0.0.0" >> $GITHUB_ENV
echo "FILE_VERSION=0.0.0.0" >> $GITHUB_ENV
Expand Down

0 comments on commit 8f05237

Please sign in to comment.