-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,14 @@ jobs: | |
echo "Latest installed dotnet version: ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}}" | ||
echo "Requested dotnet version: ${{env.DOTNET_VERSION}}" | ||
- name: "Switch to version branch" | ||
if: ${{env.DOTNET_VERSION}} < ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}} | ||
shell: bash | ||
run: | | ||
git checkout "depends/dotnet/${{env.NEW_DOTNET_VERSION}}" || git checkout -b "depends/dotnet/${{env.NEW_DOTNET_VERSION}}" | ||
env: | ||
NEW_DOTNET_VERSION: ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}} | ||
|
||
- name: "Update global.json to latest version" | ||
if: ${{env.DOTNET_VERSION}} < ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}} | ||
shell: bash | ||
|
@@ -65,24 +73,14 @@ jobs: | |
env: | ||
NEW_DOTNET_VERSION: ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}} | ||
|
||
# - name: "Update global.json to latest version" | ||
# if: ${{env.DOTNET_VERSION}} < ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}} | ||
# shell: bash | ||
# run: | | ||
# git checkout -b "depends/dotnet/${{env.NEW_DOTNET_VERSION}}" | ||
# env: | ||
# NEW_DOTNET_VERSION: ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}} | ||
|
||
- name: "Commit changes to new branch" | ||
if: ${{env.DOTNET_VERSION}} < ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}} | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: "SDK - Update DotNet SDK to ${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}}" | ||
branch: "depends/dotnet/${{steps.latest-dotnet-version.outputs.LATEST_RELEASE_VERSION}}" | ||
create_branch: true | ||
file_pattern: src/global.json | ||
commit_user_name: "fun-version[bot]" | ||
commit_user_email: "[email protected]" | ||
commit_author: "fun-version[bot] <[email protected]>" | ||
skip_dirty_check: false | ||
push_options: --force |