diff --git a/.github/workflows/terraform-apply.yml b/.github/workflows/terraform-apply.yml index db2f626..3f60893 100644 --- a/.github/workflows/terraform-apply.yml +++ b/.github/workflows/terraform-apply.yml @@ -78,7 +78,7 @@ jobs: - name: Save Public IP if: steps.terraform-operation.outcome == 'success' && github.event.inputs.operation != 'destroy' run: | - PUBLIC_IP=$(terraform output -raw instance_public_ip) + PUBLIC_IP=$(terraform output instance_public_ip | sed 's/"//g') echo "$PUBLIC_IP" > public_ip_env.txt cat public_ip_env.txt working-directory: ./terraform