Skip to content

Commit

Permalink
Create branch (added permissions)
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Mar 19, 2024
1 parent ed51f99 commit a22bca8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/dotnet-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: false

permissions:
contents: write

jobs:
build-pre-release:
if: endsWith(github.repository, 'funfair-server-template')
Expand Down Expand Up @@ -62,6 +65,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]
Expand Down

0 comments on commit a22bca8

Please sign in to comment.