- Open GitHub Actions and run the "Workflow One" workflow.
- Open the "Workflow One" workflow and click on the "Test job 1" job.
- Expand the "Set output vars" step and check the output.
Expected output:
env:
TF_VAR_custom_one: one
TF_VAR_custom_two: two
TF_VAR_custom_three: three
- Open GitHub Actions and run the "Workflow One" workflow.
- In the Run dialog box, enter the following value for the
Custom input variable
input:custom_one
- Click on the "Run workflow" button.
Expected output:
- Open the "Workflow One" workflow and click on the "Test job 1" job.
- Expand the "Set output vars" step and check the output.
env:
**TF_VAR_custom_one: custom_one**
TF_VAR_custom_two: two
TF_VAR_custom_three: three
- Go to the repository settings
- Go to the "Secrets and variables" tab => "Variables" section
- Create a new variable
TF_VAR_CUSTOM_TWO
with the valuecustom_two
- Open GitHub Actions and run the "Workflow One" workflow.
- Click on the "Run workflow" button.
Expected output:
- Open the "Workflow One" workflow and click on the "Test job 1" job.
- Expand the "Set output vars" step and check the output.
env:
TF_VAR_custom_one: one
**TF_VAR_custom_two: custom_two**
TF_VAR_custom_three: three
- Create `./terraform/demo.env`` file with the following content: TF_VAR_custom_three=custom_three
- Commit file into the repository
- Open GitHub Actions and run the "Workflow One" workflow.
- Click on the "Run workflow" button.
Expected output:
- Open the "Workflow One" workflow and click on the "Test job 1" job.
- Expand the "Set output vars" step and check the output.
env:
TF_VAR_custom_one: one
TF_VAR_custom_two: two
**TF_VAR_custom_three: custom_three**
- Open GitHub Actions and run the "Workflow Two" workflow.
- Open the "Workflow Two" workflow
Expected output:
- Click on the "Test job 1" job.
- Expand the "Set output vars" step and check the output.
env:
**TF_VAR_custom_one: custom_workflow_two**
TF_VAR_custom_two: two
TF_VAR_custom_three: three
- Click on the "Test job 2" job.
- Expand the "Print output" step and check the output.
The output is custom_workflow_two