8000 upate · flexbox/github-bootcamp@1515199 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1515199

Browse files
committed
upate
1 parent dc390eb commit 1515199

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

challenges/103/02.md

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## What you will learn
44

5-
- ...
5+
- Trigger GitHub action events
66

77
## 👾 Before we start the exercise
88

@@ -76,6 +76,8 @@ jobs:
7676
7777
In this example, the workflow runs every day at midnight (UTC).
7878
79+
- [ ] Update the hour to launch the action
80+
7981
## 👨‍🚀 Exercise 2.4
8082
8183
- [ ] Create a **Release Event**
@@ -93,5 +95,32 @@ jobs:
9395
- name: Checkout code
9496
uses: actions/checkout@v2
9597
- name: Run a one-line script
96-
run: echo Hello, Pull Request Event!
97-
```
98+
run: echo Hello, Release Event!
99+
```
100+
101+
In this example, the workflow runs whenever a new release is created in the repository.
102+
103+
- [ ] Create a GitHub release to launch the action
104+
105+
## 👨‍🚀 Exercise 2.5
106+
107+
- [ ] Create a **Manual Event**
108+
109+
This event allows you to trigger a workflow manually from the GitHub UI.
110+
111+
```yml
112+
name: Manual workflow
113+
on:
114+
workflow_dispatch:
115+
116+
jobs:
117+
build:
118+
runs-on: ubuntu-latest
119+
steps:
120+
- name: Checkout code
121+
uses: actions/checkout@v2
122+
- name: Run a one-line script
123+
run: echo Hello, Manual Event!
124+
```
125+
126+
- [ ] Manual dispatch the action

challenges/103/03.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## What you will learn
44

55
- Use the marketplace to find a GitHub action
6+
- Handle secrets in GitHub actions
67

78
## 👾 Before we start the exercise
89

0 commit comments

Comments
 (0)
0