-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.34 KB
/
debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Debug workflow for experimentation
on:
workflow_dispatch
permissions:
id-token: write
contents: read
jobs:
set-vars:
environment: test
runs-on: ubuntu-latest
outputs:
testvms: ${{ steps.setvms.outputs.vms }}
steps:
- name: set the VM list for subsequent jobs
id: setvms
run: |
echo 'vms=${{ vars.VMS }}' >> $GITHUB_OUTPUT
env-debug:
needs: [set-vars]
environment: test
runs-on: ubuntu-latest
steps:
- name: print inputs
run: |
echo ${{ needs.set-vars.outputs.testvms }}
env-matrix:
needs: [set-vars]
environment: test
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.set-vars.outputs.testvms) }}
steps:
- name: run over the matrix list
run: |
echo ${{ matrix.vms.name }}
echo ${{ matrix.vms.az }}
# static-matrix:
# strategy:
# matrix:
# vmlist: [vm1, vm2, vm3]
# runs-on: ubuntu-latest
# steps:
# - name: run over the matrix list
# run: |
# echo ${{ matrix.vmlist }}
# run-steps-if-true:
# runs-on: ubuntu-latest
# environment: test
# steps:
# - name: Run a simple step 3
# if: vars.DEPLOY_STUFF == 'yes'
# run: echo "vars.DEPLOY_STUFF:" ${{ vars.DEPLOY_STUFF }}