File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## What you will learn
4
4
5
- - ...
5
+ - Trigger GitHub action events
6
6
7
7
## 👾 Before we start the exercise
8
8
76
76
77
77
In this example, the workflow runs every day at midnight (UTC).
78
78
79
+ - [ ] Update the hour to launch the action
80
+
79
81
## 👨🚀 Exercise 2.4
80
82
81
83
- [ ] Create a **Release Event**
93
95
- name : Checkout code
94
96
uses : actions/checkout@v2
95
97
- 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
Original file line number Diff line number Diff line change 3
3
## What you will learn
4
4
5
5
- Use the marketplace to find a GitHub action
6
+ - Handle secrets in GitHub actions
6
7
7
8
## 👾 Before we start the exercise
8
9
You can’t perform that action at this time.
0 commit comments