You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: course-details.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[GitHub Actions](https://github.com/features/actions) is a powerful platform that empowers your team to go from code to cloud all from the comfort of your own repositories.
2
2
3
-
Over the duration of this course, approximately 1 hour, you will learn the skills needed to begin using and customizing GitHub Actions to fit your unique workflow scenarios.
3
+
Over the duration of this course you will learn the skills needed to begin using and customizing GitHub Actions to fit your unique workflow scenarios.
Copy file name to clipboardExpand all lines: responses/01_welcome-activity.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ _In our case, we will use this one **workflow** file for many things, which lead
12
12
13
13
### :keyboard: Activity: Create a pull request to prepare the repository for actions
14
14
15
-
1. Create a new workflow file titled `my-workflow.yml` by using the instructions below, or [this quicklink]({{quicklink}}).
15
+
1. Create a new workflow file titled `my-workflow.yml`inside of the folders `.github/workflows/`by using the instructions below, or [this quicklink]({{quicklink}}).
16
16
- Go to the [Actions tab]({{ actionsUrl }}).
17
17
- Choose the **Set up a workflow yourself** option, located on the top right hand corner of the screen.
18
-
- Change the name of the file from `main.yml`to `my-workflow.yml`.
19
-
1. Commit the workflow to a new branch named`add-initial-workflow`.
20
-
1. Create a pull request titled **Create my-workflow.yml**.
18
+
- Change the name of the file to `.github/workflows/my-workflow.yml`.
19
+
1. Commit the workflow to a new branch, you can name it`add-initial-workflow`.
20
+
1. Create a pull request titled **Create a workflow**.
21
21
1. Supply the pull request body content and click `Create pull request`.
22
22
23
23
_It is important to place meaningful content into the body of the pull requests you create throughout this course. This repository will stay with you long after you complete the course. It is advisable that you use the body of the pull requests you create as a way to take long lived notes about thing you want to remember._
Copy file name to clipboardExpand all lines: responses/09_new-action.md
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,35 +5,32 @@ Before we continue we are going to need to do a few things. First and foremost o
5
5
### :keyboard: Activity: Setting up the next action
6
6
7
7
1.[Edit]({{workflowFile}}) your workflow file by commenting out every single line. _(To comment in `.yml`, add a `#` symbol to the beginning of every line)_.
8
-
2. Commit the changes to a new branch and name it `action-two`.
9
-
3. Create a pull request named **External APIs**
10
-
4. Supply the pull request with body content. Remember, this area can be used a notes later.
11
-
5. Click `Create pull request`.
12
-
13
-
You will still see the workflow trying to execute with every push if you look at the [Actions tab]({{actionsUrl}}), however it will seem as though it fails. This is because there is a workflow file in the `.github/workflows` directory. The failure isn't actually a failure either, if you expand it you will see that there is simple no triggers for that given workflow and therefore it doesn't run. I have placed a screenshot below so you can become familiar with what this error looks like without the need to go to your [Actions tab]({{actionsUrl}}).
Like our first action, I'll respond in the new pull request when I detect it has been opened.
11
+
# on: [push]
17
12
18
-
---
13
+
# jobs:
14
+
# action:
19
15
20
-
<details><summary>The complete workflow can be viewed by clicking here</summary>
16
+
# runs-on: ubuntu-latest
21
17
22
-
```yaml
23
-
# name: JS Actions
18
+
# steps:
19
+
# - uses: actions/checkout@v1
24
20
25
-
# on: [push]
21
+
# - name: hello-action
22
+
# uses: ./.github/actions/hello-world
23
+
```
24
+
2. Commit the changes to a new branch, you can name it `action-two`.
25
+
3. Create a pull request named **External APIs**
26
+
4. Supply the pull request with body content. Remember, this area can be used a notes later.
27
+
5. Click `Create pull request`.
26
28
27
-
# jobs:
28
-
# action:
29
+
You will still see the workflow trying to execute with every push if you look at the [Actions tab]({{actionsUrl}}), however it will seem as though it fails. This is because there is a workflow file in the `.github/workflows` directory. The failure isn't actually a failure either, if you expand it you will see that there is simple no triggers for that given workflow and therefore it doesn't run. I have placed a screenshot below so you can become familiar with what this error looks like without the need to go to your [Actions tab]({{actionsUrl}}).
0 commit comments