Skip to content

Commit

Permalink
Output branch name
Browse files Browse the repository at this point in the history
Output the name of the branch created when a pull request to update the .NET SDK is opened by consuming the change from #481.
  • Loading branch information
martincostello committed Jun 20, 2023
1 parent 23961e2 commit ff9a6f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-dotnet-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ on:
type: string
default: 'ubuntu-latest'
outputs:
branch-name:
description: 'The name of the Git branch associated with the Pull Request created by the action if the .NET SDK is updated.'
value: ${{ jobs.update-dotnet-sdk.outputs.branch-name }}
pull-request-html-url:
description: 'The HTML URL of the Pull Request created by the action if the .NET SDK is updated.'
value: ${{ jobs.update-dotnet-sdk.outputs.pull-request-html-url }}
Expand Down Expand Up @@ -103,6 +106,7 @@ jobs:
if: ${{ github.event.repository.fork == false }}

outputs:
branch-name: ${{ steps.update-dotnet-sdk.outputs.branch-name }}
pull-request-html-url: ${{ steps.update-dotnet-sdk.outputs.pull-request-html-url }}
pull-request-number: ${{ steps.update-dotnet-sdk.outputs.pull-request-number }}
sdk-updated: ${{ steps.update-dotnet-sdk.outputs.sdk-updated }}
Expand Down Expand Up @@ -163,7 +167,7 @@ jobs:
# for the same release channel as the SDK specified in global.json.
- name: Update .NET SDK
id: update-dotnet-sdk
uses: martincostello/update-dotnet-sdk@db0108271a0992bee4136ed9062c3e66555d00b0 # v2.2.2
uses: martincostello/update-dotnet-sdk@23961e295d59e98a067a7a080beff48e2cb829a4 # v2.2.3
with:
branch-name: ${{ inputs.branch-name }}
channel: ${{ inputs.channel }}
Expand Down

0 comments on commit ff9a6f2

Please sign in to comment.