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

Commit

Permalink
Use proper pages URL (#50)
Browse files Browse the repository at this point in the history
* try using enablePages action

* use the store in config

* try not making enablePages required

* Revert c4f75d8 67ea450 56bf4ca

* store the pagesUrl after first retrieval
  • Loading branch information
hectorsector authored Jul 28, 2020
1 parent 5d935fc commit e6fa732
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ steps:
method: repos.getPages
owner: '%payload.repository.owner.login%'
repo: '%payload.repository.name%'
store:
pagesUrl: '{{ result.data.html_url }}'
action_id: pagesUrl
- type: respond
issue: Getting Started with GitHub
with: close-issue.md
data:
pagesUrl: '%actions.pagesUrl.data.html_url%'

# 3
- title: Close an issue
Expand Down
2 changes: 1 addition & 1 deletion responses/close-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

You turned on GitHub Pages!

Your site is now visible to the public. Check it out at {{ pagesUrl }}.
Your site is now visible to the public. Check it out at {{ store.pagesUrl }}.

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.

Expand Down
2 changes: 1 addition & 1 deletion responses/reminder-delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Congratulations @{{ user.username }}, you've completed this course!

## What went well

Now, you have your slide deck deployed [here](https://{{ user.username }}.github.io/{{ repo }}) and you've gone through the GitHub Flow.
Now, you have your slide deck deployed [here]({{ store.pagesUrl }}) and you've gone through the GitHub Flow.

Before I say good-bye, here's a recap of all the tasks you've accomplished in your repository:

Expand Down

0 comments on commit e6fa732

Please sign in to comment.