Skip to content

Commit 5e22fa6

Browse files
committed
create-azure-self-hosted-runners: output customScriptInstanceView
We want to see the output of the CustomScriptExtension in the pipeline, as it contains helpful info on things like the GfW and GitHub Actions runner versions that got installed. Signed-off-by: Dennis Ameling <[email protected]>
1 parent 902b4a1 commit 5e22fa6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,16 @@ jobs:
149149
creds: ${{ secrets.AZURE_CREDENTIALS }}
150150

151151
- uses: azure/arm-deploy@v1
152+
id: deploy-arm-template
152153
with:
153154
resourceGroupName: ${{ secrets.AZURE_RESOURCE_GROUP }}
154155
template: ./azure-self-hosted-runners/azure-arm-template.json
155156
parameters: ./azure-self-hosted-runners/azure-arm-template-example-parameters.json ${{ env.AZURE_ARM_PARAMETERS }}
157+
158+
- name: Show post-deployment script output
159+
env:
160+
CUSTOM_SCRIPT_OUTPUT: ${{ steps.deploy-arm-template.outputs.customScriptInstanceView }}
161+
run: echo "$CUSTOM_SCRIPT_OUTPUT" | jq -r '.substatuses[0].message'
156162

157163
- name: Deallocate the VM for later use
158164
if: env.DEALLOCATE_IMMEDIATELY == 'true'

0 commit comments

Comments
 (0)