Debug/ci comment #5
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: debug | |
on: | |
pull_request: | |
branches: | |
- next | |
permissions: {} | |
jobs: | |
debug-job: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to create tags and refs | |
actions: write # to cancel running workflow (andymckay/cancel-action) | |
issues: write # to create comment | |
# pull-requests: write # to create comment | |
steps: | |
- name: View context attributes | |
uses: actions/github-script@v6 | |
with: | |
script: console.log(context) | |
- name: Create Comment | |
id: create-comment | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: '👋 Thanks for reporting!' | |
}) | |
- name: Get result | |
run: echo "${{steps.create-comment.outputs.result}}" | |