-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the Skills course for Actions #74
Merged
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fdcd2a9
Start updating the course
hubwriter c42cc6b
Remove boilerplate comments
hubwriter c13cfde
Remove boilerplate comments from readme
hubwriter aeee24e
More clarifications
hubwriter 9d9d15d
More clarifications
hubwriter ac52603
Fix typo
hubwriter 5e94919
Fix typo
hubwriter c29f4c9
Update .github/steps/1-create-a-workflow.md
hubwriter 26f8a77
Update .github/steps/2-add-a-job.md
hubwriter cfc5f4d
Update .github/steps/3-add-actions.md
hubwriter 37f71a4
Update .github/steps/5-trigger.md
hubwriter ad1a361
Update .github/steps/X-finish.md
hubwriter a8e936c
Update 3-add-actions.md
hubwriter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
hubwriter marked this conversation as resolved.
Show resolved
Hide resolved
|
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 your the workflow run that's triggered is shown in the pull request before it's merge: look for **All checks have passed** when you try out the steps below. You can also see a list of all or 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. | ||
hubwriter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
![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="An image of Mona the Octocat wearing a jetpack and smiling" width=300 align=right> | ||
hubwriter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to mention editing the file, or is that obvious to the expected audience?