Skip to content

Commit

Permalink
variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nor0x committed May 8, 2024
1 parent 4b4ccd4 commit 1dd103f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
dotnet-version: 8.0.x
- name: Get Version
id: get_version
run: echo "::set-output name=version::$(grep -oP '(?<=<Version>)(.*)(?=</Version>)' NetPalette/NetPalette.csproj)"
run: echo "CURRENT_VERSION=$(cat NetPalette/NetPalette.csproj | grep -oP '(?<=<Version>)(.*?)(?=<\/Version>)')" >> $GITHUB_ENV
- name: Build
run: |
dotnet workload install maui --ignore-failed-sources
Expand Down Expand Up @@ -44,6 +44,6 @@ jobs:
# access token
token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Tag
run: git tag -a v${{ steps.get_version.outputs.version }} -m "v${{ steps.get_version.outputs.version }}"
run: git tag -a v${{ steps.get_version.outputs.CURRENT_VERSION }} -m "v${{ steps.get_version.outputs.CURRENT_VERSION }}"
- name: Push Tag
run: git push origin v${{ steps.get_version.outputs.version }}
run: git push origin v${{ steps.get_version.outputs.CURRENT_VERSION }}

0 comments on commit 1dd103f

Please sign in to comment.