Skip to content

Commit

Permalink
Update start course button (#4)
Browse files Browse the repository at this point in the history
* update-start-course-button

* Update README.md
  • Loading branch information
heiskr committed May 3, 2023
1 parent 2aefc43 commit 4fe698c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/1-first-codespace.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Step 1, 1-Create codespace and push code

# This step triggers after TBD-step-1-event-desc
# This step triggers after push to main
# This step sets STEP to 2
# This step closes <details id=1> and opens <details id=2>

# This will run every time we TBD-step-1-event-desc
# This will run every time we push to main
# Reference https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/2-custom-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Step 2, 2-custom image check
# This step sets STEP to 3
# This step closes <details id=2> and opens <details id=3>

# This will run every time we TBD-step-2-event-desc
# This will run every time we push to main
# Reference https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3-customize-codespace.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Step 3, 3-Customize Codespace

# This step triggers after TBD-step-3-event-desc
# This step triggers after we push to main
# This step sets STEP to 4
# This step closes <details id=3> and opens <details id=4>

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/4-personalize-codespace.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Step 4, 4-Personalize your Codespace

# This step triggers after TBD-step-4-event-desc
# This step triggers after push to main#setup.sh
# This step sets STEP to X
# This step closes <details id=4> and opens <details X>

# This will run every time we TBD-step-4-event-desc
# This will run every time we push to main#setup.sh
# Reference https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
on:
workflow_dispatch:
Expand Down Expand Up @@ -35,8 +35,8 @@ jobs:
outputs:
current_step: ${{ steps.get_step.outputs.current_step }}

on_TBD-step-4-event:
name: On TBD-step-4-event
on_update_setup:
name: On update setup
needs: get_current_step

# We will only run this action when:
Expand Down
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,25 @@ GitHub Codespaces is a development environment that's hosted in the cloud.

## How to start this course

<!-- For start course, run in JavaScript:
'https://github.com/new?' + new URLSearchParams({
template_owner: 'skills',
template_name: 'code-with-codespaces',
owner: '@me',
name: 'skills-code-with-codespaces',
description: 'My clone repository',
visibility: 'public',
}).toString()
-->

[![start-course](https://user-images.githubusercontent.com/1221423/235727646-4a590299-ffe5-480d-8cd5-8194ea184546.svg)](https://github.com/new?template_owner=skills&template_name=code-with-codespaces&owner=%40me&name=skills-code-with-codespaces&description=My+clone+repository&visibility=public)

1. Right-click **Start course** and open the link in a new tab.
<br />[![start-course](https://user-images.githubusercontent.com/1221423/218596841-0645fe1a-4aaf-4f51-9ab3-8aa2d3fdd487.svg)](https://github.com/skills/code-with-codespaces/generate)
1. In the new tab, follow the prompts to create a new repository.
2. In the new tab, most of the prompts will automatically fill in for you.
- For owner, choose your personal account or an organization to host the repository.
- We recommend creating a public repositoryprivate repositories will [use Actions minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).
![Create a new repository](https://user-images.githubusercontent.com/1221423/218594143-e60462b6-9f2a-4fa3-80de-063ac5429aab.png)
1. After your new repository is created, wait about 20 seconds, then refresh the page. Follow the step-by-step instructions in the new repository's README.
- We recommend creating a public repository, as private repositories will [use Actions minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).
- Scroll down and click the **Create repository** button at the bottom of the form.
3. After your new repository is created, wait about 20 seconds, then refresh the page. Follow the step-by-step instructions in the new repository's README.

</details>

Expand Down

0 comments on commit 4fe698c

Please sign in to comment.