Test Issue of Doom #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: First issue reply | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
firstIssueReply: | |
# Only when it is an issue rather than a PR | |
if: ${{ !github.event.issue.pull_request && github.event.comment.author_association == 'NONE' }} | |
name: First issue reply | |
runs-on: ubuntu-latest | |
# For some reason, with only issue:write perms the action fails even though that's all we're doing | |
permissions: write-all | |
steps: | |
- name: Checkout main repository | |
uses: actions/checkout@v4 | |
- name: First issue reply | |
run: | | |
echo "$GITHUB_CONTEXT" | |
gh issue comment "$ISSUE" --body "Hi @$USERNAME,"$'\n\n'"$(cat .github/FIRST_ISSUE_REPLY.md)" | |
env: | |
ISSUE: ${{ github.event.issue.number }} | |
USERNAME: ${{ github.event.comment.user.login }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_CONTEXT: ${{ toJson(github) }} |