Skip to content

Commit 6ff1261

Browse files
committed
Fix plan_path output
1 parent cfdc2dd commit 6ff1261

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/test-binary-plan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
missing_plan_path:
88
runs-on: ubuntu-latest
9-
name: Auto Approve
9+
name: Missing plan
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
@@ -53,7 +53,7 @@ jobs:
5353

5454
auto_approve:
5555
runs-on: ubuntu-latest
56-
name: Apply approved changes
56+
name: Apply auto approved changes
5757
steps:
5858
- name: Checkout
5959
uses: actions/checkout@v3

image/entrypoints/plan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ set_output text_plan_path "$WORKSPACE_TMP_DIR/plan.txt"
9292

9393
if [[ -n "$PLAN_OUT" ]]; then
9494
cp "$PLAN_OUT" "$GITHUB_WORKSPACE/$WORKSPACE_TMP_DIR/plan.tfplan"
95-
set_output plan_path "$GITHUB_WORKSPACE/$WORKSPACE_TMP_DIR/plan.tfplan"
95+
set_output plan_path "$WORKSPACE_TMP_DIR/plan.tfplan"
9696

9797
if (cd "$INPUT_PATH" && $TOOL_COMMAND_NAME show -json "$PLAN_OUT") >"$GITHUB_WORKSPACE/$WORKSPACE_TMP_DIR/plan.json" 2>"$STEP_TMP_DIR/terraform_show.stderr"; then
9898
set_output json_plan_path "$WORKSPACE_TMP_DIR/plan.json"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
resource "random_string" "my_string" {
2+
length = 11
3+
}
4+
5+
output "output_string" {
6+
value = "the_string"
7+
}

0 commit comments

Comments
 (0)