Skip to content

Commit

Permalink
comment from var
Browse files Browse the repository at this point in the history
  • Loading branch information
westin-m committed Oct 23, 2024
1 parent 5cf326e commit 2336800
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/PR_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ jobs:
runs-on: windows-latest
name: An example job to comment a PR
steps:
- name: Set comment content
run: echo "COMMENT_CONTENT=Hello! Thanks for opening this PR." >> $GITHUB_ENV
- name: Comment PR
uses: actions/github-script@v7
id: comment

with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Hello! Thanks for opening this PR.'
body: process.env.COMMENT_CONTENT
})

0 comments on commit 2336800

Please sign in to comment.