Skip to content

Commit

Permalink
self-hosted-arm64-runners: specify target repo
Browse files Browse the repository at this point in the history
The create-azure-self-hosted-runners workflow has an input called `runner_repo` which can be used to specify the repository that the runner will be deployed to. It defaults to git-for-windows-automation, which is not the right one in all cases.

Let's set the `runner_repo` input to the repository that requested the runner.

Ref: https://github.com/git-for-windows/git-for-windows-automation/blob/main/.github/workflows/create-azure-self-hosted-runners.yml#L18C7-L18C18
Signed-off-by: Dennis Ameling <[email protected]>
  • Loading branch information
dennisameling committed Apr 30, 2024
1 parent c176add commit 6d17957
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GitForWindowsHelper/self-hosted-arm64-runners.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ module.exports = async (context, req) => {
'git-for-windows-automation',
'create-azure-self-hosted-runners.yml',
'main', {
runner_scope: 'repo-level'
runner_scope: 'repo-level',
// Repository that the runner will be deployed to. We want to ensure that the runner is deployed to the same repository that triggered the action.
runner_repo: repo
}
)

Expand Down

0 comments on commit 6d17957

Please sign in to comment.