-
-
Save developer-guy/b5b7c2c32a8dcf035f4b983b4e751c97 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow 2 — Issue Greeter
This file contains hidden or 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: issue-greeter | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
my-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: my-step | |
env: | |
REPO: ${{ github.event.repository.name }} | |
OWNER: ${{ github.event.repository.owner.login }} | |
ISSUE_NUMBER: ${{ github.event.issue.number }} | |
run: | | |
curl -s -X POST https://api.github.com/repos/$OWNER/$REPO/issues/$ISSUE_NUMBER/comments \ | |
-d '{"body":"Hello ${{ github.event.issue.user.login }}, thanks for your issue!"}' | |
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment