-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Skills course for Actions (#74)
* Start updating the course * Remove boilerplate comments * Remove boilerplate comments from readme * More clarifications * More clarifications * Fix typo * Fix typo * Update .github/steps/1-create-a-workflow.md * Update .github/steps/2-add-a-job.md * Update .github/steps/3-add-actions.md Co-authored-by: Felicity Chapman <[email protected]> * Update .github/steps/5-trigger.md Co-authored-by: Felicity Chapman <[email protected]> * Update .github/steps/X-finish.md Co-authored-by: Felicity Chapman <[email protected]> * Update 3-add-actions.md --------- Co-authored-by: Felicity Chapman <[email protected]>
- Loading branch information
1 parent
ad01114
commit 25efefe
Showing
8 changed files
with
64 additions
and
116 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!-- readme --> | ||
<!-- The readme will be displayed. --> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
<!-- | ||
<<< Author notes: Step 5 >>> | ||
Start this step by acknowledging the previous step. | ||
Define terms and link to docs.github.com. | ||
--> | ||
|
||
## Step 5: Trigger the workflow | ||
|
||
_You've now got a fully functioning workflow! :smile:_ | ||
_You've now added a fully functioning workflow to your repository! :smile:_ | ||
|
||
Your new action will run any time a pull request has been opened. | ||
The shell script in the workflow will run whenever a new pull request is opened. | ||
|
||
**Seeing your _action_ in action**: The status of your action is shown in a pull request before you merge, look for **All checks have passed** when you try out the steps below. You can also view them from the **Actions** tab in your repository. From there, you will see all the actions that have run, and you can click on each action to view details and access log files. | ||
**Seeing your _action_ in action**: The status of each workflow run that's triggered is shown in the pull request before it's merged: look for **All checks have passed** when you try out the steps below. You can also see a list of all the workflows that are running, or have finished running, in the **Actions** tab of your repository. From there, you can click on each workflow run to view more details and access log files. | ||
|
||
![View an action's log](https://user-images.githubusercontent.com/16547949/62388049-4e64e600-b52a-11e9-8bf5-db0c5452360f.png) | ||
![A screenshot of the Actions tab showing a list of workflow runs.](https://user-images.githubusercontent.com/16547949/62388049-4e64e600-b52a-11e9-8bf5-db0c5452360f.png) | ||
|
||
### :keyboard: Activity: Trigger the workflow | ||
|
||
1. Make a new branch named `test-workflow`. | ||
1. Commit any change to your branch, such as adding an emoji to your README.md file. | ||
1. Create the pull request on your branch. | ||
1. See your action run on your pull request. | ||
1. Wait about 20 seconds for actions to run, then refresh this page (the one you're following instructions from) and an action will automatically close this step and open the next one. | ||
1. Make a change, such as adding an emoji to your README.md file, and commit the change directly to your new branch. | ||
1. In the **Pull requests** tab, create a pull request that will merge `test-workflow` into `main`. | ||
1. Watch the workflow running in the checks section of the pull request. | ||
1. Notice the comment that the workflow adds to the pull request. | ||
1. Wait about 20 seconds, then refresh this page (the one you're following instructions from). Another workflow will run and will replace this content with instructions for the next step. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
<!-- | ||
<<< Author notes: Finish >>> | ||
Review what we learned, ask for feedback, provide next steps. | ||
--> | ||
|
||
## Finish | ||
|
||
_Congratulations friend, you've completed this course!_ | ||
|
||
<img src=https://octodex.github.com/images/jetpacktocat.png alt=celebrate width=300 align=right> | ||
<img src=https://octodex.github.com/images/jetpacktocat.png alt="Mona the Octocat wearing a jetpack and smiling." width=300 align=right> | ||
|
||
Here's a recap of all the tasks you've accomplished in your repository: | ||
|
||
- You've created your first GitHub Actions workflow file. | ||
- You learned where to make your workflow file. | ||
- You created an event trigger, a job, and steps for your workflow. | ||
- You defined an event trigger, a job, and a step for your workflow. | ||
- You're ready to automate anything you can dream of. | ||
|
||
### What's next? | ||
|
||
- Learn more about GitHub Actions by reading "[Learn GitHub Actions](https://docs.github.com/actions/learn-github-actions)". | ||
- Use actions created by others in [awesome-actions](https://github.com/sdras/awesome-actions). | ||
- We'd love to hear what you thought of this course [in our discussion board](https://github.com/orgs/skills/discussions/categories/hello-github-actions). | ||
- [Take another GitHub Skills course](https://github.com/skills). | ||
- Learn more about GitHub by reading the "[Get started](https://docs.github.com/get-started)" docs. | ||
- To find projects to contribute to, check out [GitHub Explore](https://github.com/explore). | ||
- Learn more about GitHub Actions by reading "[Learn GitHub Actions](https://docs.github.com/actions/learn-github-actions)" | ||
- Use actions created by others in [awesome-actions](https://github.com/sdras/awesome-actions) | ||
- We'd love to hear what you thought of this course [in our discussion board](https://github.com/orgs/skills/discussions/categories/hello-github-actions) | ||
- [Take another course on GitHub Actions](https://skills.github.com/#automate-workflows-with-github-actions) | ||
- Learn more about GitHub by reading the "[Get started](https://docs.github.com/get-started)" docs | ||
- To find projects to contribute to, check out [GitHub Explore](https://github.com/explore) |
This file contains 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