fix: create terraform workspaces automatically in shared actions #44
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: schmalz/shared-actions#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/terraform-workspace-or-create"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi @Sebastian.Boehringer
This fix applies the workspace handling change in the correct place: the shared Terraform actions.
Problem:
stageorprod)"Workspace 'stage' doesn't exist."
Changes:
terraform-applynow uses:terraform workspace select -or-create "$TF_WORKSPACE_NAME"terraform-validatenow also explicitly selects/creates the requested workspace before running format/validateUpdated files:
This keeps the fix centralized in the shared-actions repository, so downstream repositories do not need custom workspace bootstrap logic in their workflows.