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

Commit 0773727

Browse files
authored
Merge pull request #22 from githubtraining/correct-links
Update URLs to be correct on GHES
2 parents 17da8f5 + 87ad1d3 commit 0773727

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,16 @@ steps:
5151
event: deployment
5252
link: '{{ repoUrl }}/issues/1'
5353
actions:
54+
- type: octokit
55+
method: repos.getPages
56+
owner: '%payload.repository.owner.login%'
57+
repo: '%payload.repository.name%'
58+
action_id: pagesUrl
5459
- type: respond
5560
issue: Getting Started with GitHub
5661
with: close-issue.md
62+
data:
63+
pagesUrl: '%actions.pagesUrl.data.html_url%'
5764

5865
# 3
5966
- title: Close an issue

responses/close-issue.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
You turned on GitHub Pages!
44

5-
Your site is now visible to the public. Check it out at https://{{ user.username }}.github.io/{{ repo }}.
5+
Your site is now visible to the public. Check it out at {{ pagesUrl }}.
66

77
Now that you’ve completed the tasks in this issue, it's time to close it! Closing an issue tells other contributors that this particular conversation or task has come to an end.
88

responses/turn-on-gh-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Now, on to business! GitHub Pages allow you to serve a static site from a reposi
88

99
### :keyboard: Activity: Enable GitHub Pages
1010

11-
1. Click on the [**Settings**](https://github.com/{{ user.username }}/{{ repo }}/settings) tab in this repository
11+
1. Click on the [**Settings**]({{ repoUrl }}/settings) tab in this repository
1212
1. Scroll down to the "GitHub Pages" section
1313
1. From the "Source" drop down, select **master branch**
1414

0 commit comments

Comments
 (0)