Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ jobs:
- name: Test
if: ${{ env.TESTING == 'true' }}
id: test
uses: GetTerminus/terraform-pr-commenter@v3-beta #set to your branch for testing and switch back to v3-beta when done.
uses: k1rk/terraform-pr-commenter@v3-beta #set to your branch for testing and switch back to v3-beta when done.
with:
commenter_type: plan
# Should only be setting commenter_input or commenter_plan_path (commenter_plan_path only for plan commenter type)
commenter_input: ${{ needs.set-outputs.outputs.tf_plan_success_with_outputs }}
#commenter_plan_path: ./testing/text-files/tf_plan_success_with_outputs.txt
# commenter_input: ${{ needs.set-outputs.outputs.tf_plan_success_with_outputs }}
commenter_plan_path: ./testing/text-files/tf_plan_success_with_outputs.txt
commenter_exitcode: 2
use_beta_version: "true"
- name: Test-project-2
if: ${{ env.TESTING == 'true' }}
uses: GetTerminus/terraform-pr-commenter@v3-beta #set to your branch for testing and switch back to v3-beta when done.
uses: k1rk/terraform-pr-commenter@v3-beta #set to your branch for testing and switch back to v3-beta when done.
with:
commenter_type: plan
# Should only be setting commenter_input or commenter_plan_path (commenter_plan_path only for plan commenter type)
Expand Down
4 changes: 4 additions & 0 deletions utilities/parse_args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ parse_args() {
debug "COMMENTER_INPUT: $COMMENTER_INPUT"

if [[ $COMMAND == 'plan' ]]; then
ls -la workspace/
echo $COMMENTER_PLAN_FILE
cat workspace/tf_plan.txt

if test -f "workspace/${COMMENTER_PLAN_FILE}"; then
info "Found commenter plan file."
pushd workspace >/dev/null || (error "Failed to push workspace dir" && exit 1)
Expand Down