Skip to content

Commit

Permalink
Merge pull request #2 from edgefarm/preview-in-comments
Browse files Browse the repository at this point in the history
feat(ops.management-cluster): pipe terraform plan output to pull request
  • Loading branch information
batthebee authored Apr 11, 2022
2 parents 49eb357 + a166e4d commit eb1fcca
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,17 @@ jobs:
-var prefix="${{ inputs.prefix }}" \
-var hcloud_secret="${{ secrets.hcloud_secret }}" \
-var hcloud_ssh_key_private="${{ secrets.hcloud_ssh_key_private }}" \
-var hcloud_ssh_key_public="${{ secrets.hcloud_ssh_key_public }}"
-var hcloud_ssh_key_public="${{ secrets.hcloud_ssh_key_public }}" \
-no-color
echo "::set-output name=terraform-plan::$(cat plan.out)"
id: run_plan

- name: Send plan to PR
uses: thollander/actions-comment-pull-request@v1.1.0
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
message: |
```bash
${{join(steps.run_plan.outputs.*, '\n')}}
```

0 comments on commit eb1fcca

Please sign in to comment.