Skip to content

Commit c683f89

Browse files
committed
self-hosted-runners: allow the workflow to run in a different branch/repo
This makes the workflow very useful also to other projects who want to imitate what Git for Windows does. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6cfc1d0 commit c683f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/create-azure-self-hosted-runners.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626
ACTIONS_RUNNER_ORG: "${{ github.event.inputs.runner_org }}"
2727
ACTIONS_RUNNER_REPO: "${{ github.event.inputs.runner_repo }}"
2828
# This has to be a public URL that the VM can access after creation
29-
POST_DEPLOYMENT_SCRIPT_URL: https://raw.githubusercontent.com/git-for-windows/git-for-windows-automation/main/azure-self-hosted-runners/post-deployment-script.ps1
29+
POST_DEPLOYMENT_SCRIPT_URL: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/azure-self-hosted-runners/post-deployment-script.ps1
3030

3131
# The following secrets are required for this workflow to run:
3232
# GH_API_PAT - PAT to create a runner registration token using GitHub's API

0 commit comments

Comments
 (0)