Skip to content

Commit f4088ac

Browse files
Merge pull request #1 from Chau-Nguyen-Developer/welcome-workflow
Edited welcome workflow
2 parents f62ec31 + 218415d commit f4088ac

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/welcome.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Post welcome comment
2+
on:
3+
pull_request:
4+
types: [opened]
5+
permissions:
6+
pull-requests: write
7+
jobs:
8+
build:
9+
name: Post welcome comment
10+
runs-on: ubuntu-latest
11+
steps:
12+
- run: gh pr comment $PR_URL --body "Welcome to the repository!"
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
PR_URL: ${{ github.event.pull_request.html_url }}

Notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Notes
2+
* Workflows have jobs, and jobs have steps.
3+
* Each step consists of either a shell script that is executed, or a reference to an action that is run. When we talk about an action in this context, we mean a reusable unit of code.
4+
* An action is a pre-defined, reusable set of jobs or code that perform specific tasks within a workflow.

0 commit comments

Comments
 (0)