Skip to content

Commit c142b35

Browse files
Create my-workflow.yml
1 parent 0df7f63 commit c142b35

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/my-workflow.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Learning GitHub Script
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
comment:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/github-script@0.8.0
12+
with:
13+
github-token: ${{secrets.GITHUB_TOKEN}}
14+
script: |
15+
github.issues.createComment({
16+
issue_number: context.issue.number,
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
body: "🎉 You've created this issue comment using GitHub Script!!!"
20+
})

0 commit comments

Comments
 (0)