-
Notifications
You must be signed in to change notification settings - Fork 215
Migrate to issue based exercise flow #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
215c3e2
91c8b22
bbc7c97
11e1218
1a63368
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
| 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> |
This file was deleted.
| 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> |
This file was deleted.
| 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> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| 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) | ||
| 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 }} |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.