Skip to content

Commit 9044953

Browse files
committed
create-self-hosted-runner: use better post-deployment script URL
We need to couple the post-deployment script URL more tightly to the current revision, otherwise the workflow run might pick up an unintended version of that script. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent cf7fa46 commit 9044953

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
@@ -36,7 +36,7 @@ env:
3636
ACTIONS_RUNNER_REPO: "${{ github.event.inputs.runner_repo || github.event.repository.name }}"
3737
DEALLOCATE_IMMEDIATELY: ${{ github.event.inputs.deallocate_immediately }}
3838
# This has to be a public URL that the VM can access after creation
39-
POST_DEPLOYMENT_SCRIPT_URL: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref_name }}/azure-self-hosted-runners/post-deployment-script.ps1
39+
POST_DEPLOYMENT_SCRIPT_URL: https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref }}/azure-self-hosted-runners/post-deployment-script.ps1
4040
# Note that you'll need "p" (arm64 processor) and ideally "d" (local temp disk). The number 8 stands for 8 CPU-cores.
4141
# For a convenient overview of all arm64 VM types, see e.g. https://azureprice.net/?_cpuArchitecture=Arm64
4242
AZURE_VM_TYPE: Standard_D8plds_v5

0 commit comments

Comments
 (0)