Skip to content

Commit 4fe698c

Browse files
authored
Update start course button (#4)
* update-start-course-button * Update README.md
1 parent 2aefc43 commit 4fe698c

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

.github/workflows/1-first-codespace.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Step 1, 1-Create codespace and push code
22

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

7-
# This will run every time we TBD-step-1-event-desc
7+
# This will run every time we push to main
88
# Reference https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
99
on:
1010
workflow_dispatch:

.github/workflows/2-custom-image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Step 2, 2-custom image check
44
# This step sets STEP to 3
55
# This step closes <details id=2> and opens <details id=3>
66

7-
# This will run every time we TBD-step-2-event-desc
7+
# This will run every time we push to main
88
# Reference https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
99
on:
1010
workflow_dispatch:

.github/workflows/3-customize-codespace.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Step 3, 3-Customize Codespace
22

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

.github/workflows/4-personalize-codespace.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Step 4, 4-Personalize your Codespace
22

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

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

38-
on_TBD-step-4-event:
39-
name: On TBD-step-4-event
38+
on_update_setup:
39+
name: On update setup
4040
needs: get_current_step
4141

4242
# We will only run this action when:

README.md

+17-5
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,25 @@ GitHub Codespaces is a development environment that's hosted in the cloud.
3333

3434
## How to start this course
3535

36+
<!-- For start course, run in JavaScript:
37+
'https://github.com/new?' + new URLSearchParams({
38+
template_owner: 'skills',
39+
template_name: 'code-with-codespaces',
40+
owner: '@me',
41+
name: 'skills-code-with-codespaces',
42+
description: 'My clone repository',
43+
visibility: 'public',
44+
}).toString()
45+
-->
46+
47+
[![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)
48+
3649
1. Right-click **Start course** and open the link in a new tab.
37-
<br />[![start-course](https://user-images.githubusercontent.com/1221423/218596841-0645fe1a-4aaf-4f51-9ab3-8aa2d3fdd487.svg)](https://github.com/skills/code-with-codespaces/generate)
38-
1. In the new tab, follow the prompts to create a new repository.
50+
2. In the new tab, most of the prompts will automatically fill in for you.
3951
- For owner, choose your personal account or an organization to host the repository.
40-
- 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).
41-
![Create a new repository](https://user-images.githubusercontent.com/1221423/218594143-e60462b6-9f2a-4fa3-80de-063ac5429aab.png)
42-
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.
52+
- 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).
53+
- Scroll down and click the **Create repository** button at the bottom of the form.
54+
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.
4355

4456
</details>
4557

0 commit comments

Comments
 (0)