Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pieckenst committed Nov 30, 2023
1 parent 4aa4cc0 commit ce704fa
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,21 @@ jobs:
- name: Publish
run: dotnet publish --runtime win-x64 --configuration Release

- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.3.0 # Optional fallback tag to use when no tag can be found
- name: 'Get current version'
id: releaseVersion
run: |
owner="pieckenst"
repo="Mass-Effect-Legendary-Launcher"
release_json=$(curl https://api.github.com/repos/$owner/$repo/releases)
Release_tag=$(echo "$release_json" | jq -r '.[0].tag_name')
echo "Release_tag: Latest Tag is : $Release_tag"
echo ::set-output name=Release_tag::"$Release_tag"
- name: 'Get next minor version'
id: semvers
uses: "WyriHaximus/github-action-next-semvers@v1"
with:
version: ${{ steps.previoustag.outputs.tag }}
version: ${{ steps.releaseVersion.outputs.Release_tag }}
- name: Bumping Patch Index
id: bump_version_patch
uses: christian-draeger/increment-semantic-version@1.0.2
Expand Down

0 comments on commit ce704fa

Please sign in to comment.