Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit ee53c33

Browse files
committed
more prep for release
1 parent abe60a6 commit ee53c33

10 files changed

+50
-22
lines changed

config.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ title: "GitHub Actions: Using GitHub Script"
22
description: >-
33
This course covers how to use GitHub Script to quickly use octokit/rest in a
44
GitHub Actions workflow.
5+
tags:
6+
- GitHub Actions
7+
- Octokit
8+
- Workflow
9+
- Automation
510
template:
611
repo: write-github-script-template
712
name: write-github-script
@@ -54,36 +59,24 @@ steps:
5459
# get tree
5560
- type: getTree
5661
action_id: isInTree
57-
store:
58-
firstWorkflowTree: "%result.data.tree%"
5962
recursive: true
6063
sha: "%payload.pull_request.head.sha%"
61-
- type: respond
62-
with: e-result.md
63-
data:
64-
resultData: "%registration.store.firstWorkflowTree%"
65-
actionIdData: "%actions.isInTree.data.tree%"
6664
# check for a file in a tree
6765
- type: gate
68-
# left: "%actions.isInTree.data.tree%"
69-
left: "%registration.store.firstWorkflowTree%"
66+
left: "%actions.isInTree.data.tree%"
7067
operator: includes
7168
right: "path:.github/workflows/my-workflow.yml"
7269
else:
7370
# if file isn't where expected find true location
7471
- type: findInTree
7572
path: my-workflow.yml
76-
# tree: "%actions.isInTree.data.tree%"
77-
tree: "%registration.store.firstWorkflowTree%"
78-
# action_id: fileLocation
79-
store:
80-
firstFileLocation: "%result.data.path%"
73+
tree: "%actions.isInTree.data.tree%"
74+
action_id: fileLocation
8175
# help user with proper file location
8276
- type: respond
8377
with: e-wrong-file-location.md
8478
data:
85-
# haveFile: "%actions.fileLocation.path%"
86-
haveFile: "%registration.store.firstFileLocation%"
79+
haveFile: "%actions.fileLocation.path%"
8780
needFile: ".github/workflows/my-workflow.yml"
8881
editLink: "%payload.repository.html_url%/edit/%payload.pull_request.head.ref%/%actions.fileLocation.path%"
8982
fileName: my-workflow.yml
@@ -103,7 +96,7 @@ steps:
10396
firstPullUrl: "%result.data.html_url%"
10497
firstPullNumber: "%result.data.number%"
10598
data:
106-
actionsUrl: "%payload.repository.html_url%/actions"
99+
actionsUrl: "%payload.repository.html_url%/actions%"
107100

108101
- title: Merge the new workflow into the master branch
109102
description: Make the workflow available for use on the repository
@@ -113,7 +106,6 @@ steps:
113106
- type: createIssue
114107
title: Create an issue comment with GitHub Script
115108
body: 02_workflow-triggered.md
116-
# action_id: triggerIssue
117109
store:
118110
secondIssueNumber: "%result.data.number%"
119111
secondIssueUrl: "%result.data.html_url%"

responses/00_welcome-activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ _It is important to place meaningful content into the body of the pull requests
6262

6363
---
6464

65-
I'll respond in the new pull request when I detect it has been created.
65+
I am waiting for you to create a new pull request before moving on.

responses/01_merge-workflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Let's go ahead and do this now.
88

99
### :keyboard: Activity: Merge the workflow
1010

11-
When you are ready, merge this pull request.
11+
1. Merge this pull request.
1212

1313
---
1414

15-
Once you have merged this pull request I will open a new issue so we can see this workflow in action!
15+
I am waiting for you to merge this pull request before moving on.
1616

17-
Oh, I'll also be responding to you from that issue!
17+
Once you have merged this pull request I will open a new issue so we can see this workflow in action!
1818

1919
<details><summary>Trouble merging?</summary>Try refreshing the page!</details>

responses/03_add-to-projects.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ We've gone ahead and done this on our end of things so that we could give you th
5050

5151
---
5252

53+
I am waiting for you to create a new pull request before moving on.
54+
5355
I'll respond in the new pull request when I detect it has been created.

responses/04_merge-workflow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ When you are ready, merge this pull request.
1414

1515
---
1616

17+
I am waiting for you to merge this pull request before moving on.
18+
1719
Once you have merged this pull request I will open a new issue so we can see this workflow in action!
1820

1921
<details><summary>Trouble merging?</summary>Try refreshing the page!</details>

responses/06_steps-activity.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ We will make the following changes to the current workflow file:
5252

5353
---
5454

55+
I am waiting for you to create a new pull request before moving on.
56+
5557
I'll respond in the pull request you create

responses/07_use-fs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@ We will make the following changes to the current workflow file:
5555
5656
---
5757
58+
I am waiting for you to commit the desired changes to this branch before moving on.
59+
5860
I'll respond once you've committed the changes to this branch

responses/08_merge-workflow.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ When you are ready, merge this pull request.
88

99
---
1010

11+
I am waiting for you to merge this pull request before moving on.
12+
1113
Once you have merged this pull request I will open a new issue so we can see this workflow in action!
1214

1315
<details><summary>Trouble merging?</summary>Try refreshing the page!</details>

responses/09_issue-activity.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88

99
---
1010

11+
I am waiting for you to open a new issue before moving on.
12+
1113
I'll respond in your new issue once you've opened it

server-installation-notes.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## GitHub Enterprise Server (GHES) installation notes
2+
3+
<!-- start compatibility header, pick one of the options below, add or remove detail as necessary -->
4+
5+
| 🚫 | This course needs features not yet supported by GHES. |
6+
| --- | ----------------------------------------------------- |
7+
8+
9+
This course makes use of [GitHub Actions](https://github.com/features/actions), a feature that is currently available for GitHub.com but not available on GHES.
10+
11+
<!-- /end compatibility header -->
12+
13+
### Course dependencies
14+
15+
The following are dependencies of the course. The course may continue to work without these dependencies, but learners won't experience the course as designed.
16+
17+
<!-- this table contains some options, remove (or add) rows as you see necessary for your course -->
18+
19+
| Dependency | Required? | Reason | Alternative |
20+
| -------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21+
| GHES must be able to reach githubusercontent.com | Yes | Images used throughout the course are served from this domain. Learners will find broken images required to take the course without this access. | Manually download the images referenced in the `responses/` folder, upload them to an accessible domain, and replace the images in the `responses/` folder. |
22+
| Learner must be able to reach github.com and outside web | Yes | Links are provided to resources that live on the outside web. | Without access to resources on the outside web, learners will reach blocked resources. You can change the links to these resources in the `responses/` folder, and in the template repository. |
23+
24+
|

0 commit comments

Comments
 (0)