Skip to content

Commit

Permalink
Simplifying github script
Browse files Browse the repository at this point in the history
  • Loading branch information
stemaMSFT committed Oct 31, 2023
1 parent cd978c0 commit 381d1b0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ jobs:
# Add a comment to pull requests with plan results
- uses: actions/github-script@v6
# if: github.event_name == 'pull_request'
id: test
id: comment
with:
script: return "Hello!"
result-encoding: string
- name: add-plan-comment
run: echo "${{steps.test.outputs.result}}"
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'test'
})
# id: comment
# env:
# PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
Expand All @@ -89,7 +92,7 @@ jobs:
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: output
# body: 'test'
# })

# On push to main, build or change infrastructure according to Terraform configuration files
Expand Down

0 comments on commit 381d1b0

Please sign in to comment.