Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/steps/-step.txt

This file was deleted.

1 change: 0 additions & 1 deletion .github/steps/0-welcome.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/steps/1-step.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Step 1: (replace-me: STEP-NAME)

(replace-me: OPTIONAL Brief story or scenario to introduce the step)

### 📖 Theory: (replace-me: Theory title)

<!-- GitHub-styled notifications can be used outside of ordered lists. Available options are: NOTE, IMPORTANT, WARNING, TIP, CAUTION -->
<!--
> [!NOTE]
> (Important note or additional information relevant to this section)
-->

(replace-me: Optional theory or background information relevant to this step)

### ⌨️ Activity: (replace-me: Activity title)

1. (replace-me: First instruction)
1. (replace-me: Second instruction)
1. (replace-me: Additional instructions as needed)

<details>
<summary>Having trouble? 🤷</summary><br/>

- (replace-me: Troubleshooting tip or hint)
- (replace-me: Additional troubleshooting tips as needed)

</details>
22 changes: 0 additions & 22 deletions .github/steps/1-tbd.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/steps/2-step.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Step 1: (replace-me: STEP-NAME)

(replace-me: OPTIONAL Brief story or scenario to introduce the step)

### 📖 Theory: (replace-me: Theory title)

<!-- GitHub-styled notifications can be used outside of ordered lists. Available options are: NOTE, IMPORTANT, WARNING, TIP, CAUTION -->
<!--
> [!NOTE]
> (Important note or additional information relevant to this section)
-->

(replace-me: Optional theory or background information relevant to this step)

### ⌨️ Activity: (replace-me: Activity title)

1. (replace-me: First instruction)
1. (replace-me: Second instruction)
1. (replace-me: Additional instructions as needed)

<details>
<summary>Having trouble? 🤷</summary><br/>

- (replace-me: Troubleshooting tip or hint)
- (replace-me: Additional troubleshooting tips as needed)

</details>
19 changes: 0 additions & 19 deletions .github/steps/2-tbd.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/steps/3-step.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Step 1: (replace-me: STEP-NAME)

(replace-me: OPTIONAL Brief story or scenario to introduce the step)

### 📖 Theory: (replace-me: Theory title)

<!-- GitHub-styled notifications can be used outside of ordered lists. Available options are: NOTE, IMPORTANT, WARNING, TIP, CAUTION -->
<!--
> [!NOTE]
> (Important note or additional information relevant to this section)
-->

(replace-me: Optional theory or background information relevant to this step)

### ⌨️ Activity: (replace-me: Activity title)

1. (replace-me: First instruction)
1. (replace-me: Second instruction)
1. (replace-me: Additional instructions as needed)

<details>
<summary>Having trouble? 🤷</summary><br/>

- (replace-me: Troubleshooting tip or hint)
- (replace-me: Additional troubleshooting tips as needed)

</details>
19 changes: 0 additions & 19 deletions .github/steps/3-tbd.md

This file was deleted.

19 changes: 0 additions & 19 deletions .github/steps/4-tbd.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/steps/5-tbd.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/steps/X-finish.md

This file was deleted.

16 changes: 16 additions & 0 deletions .github/steps/x-review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Review

_Congratulations, you've completed this exercise and learned a lot about (replace-me: feature/product that was taught in this exercise)

<img src="https://octodex.github.com/images/jetpacktocat.png" alt="celebrate" width=200 align=right>

Here's a recap of your accomplishments:

- (replace-me: Accomplishment #1)
- (replace-me: Accomplishment #N)

### What's next?

- (replace-me: Natural follow up Skills exercise - if there is one)
- (replace-me: Documentation link to learn more about the feature)
- (replace-me: Other resources or calls to action)
72 changes: 72 additions & 0 deletions .github/workflows/0-start-exercise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Step 0 # Start Exercise

on:
push:
branches:
- main

permissions:
contents: write
actions: write
issues: write

env:
STEP_1_FILE: ".github/steps/1-step.md"

jobs:
start_exercise:
if: |
!github.event.repository.is_template
name: Start Exercise
uses: skills/exercise-toolkit/.github/workflows/start-exercise.yml@v0.4.0
with:
exercise-title: "(replace-me: Exercise title)"
intro-message: "(replace-me: Brief one line introduction message for the exercise)"

post_next_step_content:
name: Post next step content
runs-on: ubuntu-latest
needs: [start_exercise]
env:
ISSUE_URL: ${{ needs.start_exercise.outputs.issue-url }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get response templates
uses: actions/checkout@v4
with:
repository: skills/exercise-toolkit
path: exercise-toolkit
ref: v0.4.0

- name: Build comment - add step content
id: build-comment
uses: skills/action-text-variables@v2
with:
template-file: ${{ env.STEP_1_FILE }}
template-vars: |
login: ${{ github.actor }}
full_repo_name: ${{ github.repository }}

- name: Create comment - add step content
run: |
gh issue comment "$ISSUE_URL" \
--body "$ISSUE_BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_BODY: ${{ steps.build-comment.outputs.updated-text }}

- name: Create comment - watching for progress
run: |
gh issue comment "$ISSUE_URL" \
--body-file "exercise-toolkit/markdown-templates/step-feedback/watching-for-progress.md"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enable next step workflow
run: |
gh workflow disable "${{github.workflow}}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66 changes: 0 additions & 66 deletions .github/workflows/0-welcome.yml

This file was deleted.

Loading