Skip to content

Name uploaded plan files per environment#5

Merged
AlexKantor87 merged 1 commit into
mainfrom
uploaded-plan-filenames
May 1, 2026
Merged

Name uploaded plan files per environment#5
AlexKantor87 merged 1 commit into
mainfrom
uploaded-plan-filenames

Conversation

@gsavage
Copy link
Copy Markdown
Contributor

@gsavage gsavage commented May 1, 2026

The human-readable plan was always written to /tmp/tfplan.txt, so when the reusable workflow runs in a matrix every uploaded artifact contained a file with the same name. Downloading several at once made it impossible to tell which plan belonged to which environment.

Write the plan to /tmp/${environment}.plan.txt instead, so the file inside each artifact is identifiable on its own (e.g. staging.plan.txt, prod-us.plan.txt).

The human-readable plan was always written to /tmp/tfplan.txt, so when
the reusable workflow runs in a matrix every uploaded artifact contained
a file with the same name. Downloading several at once made it
impossible to tell which plan belonged to which environment.

Write the plan to /tmp/${environment}.plan.txt instead, so the file
inside each artifact is identifiable on its own (e.g. staging.plan.txt,
prod-us.plan.txt).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gsavage gsavage requested a review from AlexKantor87 May 1, 2026 08:53
@AlexKantor87 AlexKantor87 merged commit 900ff87 into main May 1, 2026
1 check passed
@AlexKantor87 AlexKantor87 deleted the uploaded-plan-filenames branch May 1, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants