Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEVEX-108] Add optional parameter to PR infra workflow #12

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/infra_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ on:
description: Azure region where the resources will be deployed.
type: string
required: true
tf_configuration_path:
description:
base_path:
description: The base path on which the script will look for Terraform projects
type: string
required: false
balanza marked this conversation as resolved.
Show resolved Hide resolved
default: infra/resources
env_vars:
description: List of environment variables to set up, given in env=value format.
type: string
Expand Down Expand Up @@ -59,7 +58,7 @@ jobs:
# The directory is expected to be in the format
# infra/resources/${{ inputs.environment }}/${{ inputs.region }}
# Example: infra/resources/prod/westeurope
echo "dir=${{ inputs.tf_configuration_path}}/${{ inputs.environment }}/${{ inputs.region }}" >> $GITHUB_OUTPUT
echo "dir=${{ inputs.base_path}}/${{ inputs.environment }}/${{ inputs.region }}" >> $GITHUB_OUTPUT
fi

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr_infra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
with:
environment: prod
region: westeurope
base_path: infra/resources
Loading