-
Notifications
You must be signed in to change notification settings - Fork 102
48 lines (44 loc) · 1.15 KB
/
workflow-tester78.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
name: Test 78 # Related to https://stackoverflow.com/questions/75720251/setup-environment-to-use-variable-context-when-calling-a-reusable-workflow
on:
workflow_call:
# Map the workflow outputs to job outputs
inputs:
project-id:
required: true
type: string
environment:
required: true
type: string
cluster-name:
required: true
type: string
region:
required: true
type: string
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: |
echo "${{ inputs.project-id }}"
echo "${{ inputs.environment }}"
echo "${{ inputs.cluster-name }}"
echo "${{ inputs.region }}"
test-env:
runs-on: ubuntu-latest
environment:
name: other
steps:
- run: |
echo "${{ vars.PROJECT_ID }}"
echo "${{ vars.CLUSTER_NAME }}"
echo "${{ vars.REGION }}"
test-dynamic-env:
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}
steps:
- run: |
echo "${{ vars.PROJECT_ID }}"
echo "${{ vars.CLUSTER_NAME }}"
echo "${{ vars.REGION }}"