Skip to content

Commit 5c7df42

Browse files
committed
update and refactor quests steps
1 parent 6bb7ba2 commit 5c7df42

File tree

10 files changed

+76
-55
lines changed

10 files changed

+76
-55
lines changed

.github/steps/0-welcome.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ Click on a quest and follow the instructions to get started.
4242

4343
[![Static Badge](https://img.shields.io/badge/Quest-I_want_to_integrate_external_data_using_RAG-purple)](../../issues/new?title=Quest:+I+want+to+create+my+first+AI+app+with+RAG&labels=quest&body=%F0%9F%93%9A+I%27m+diving+into+RAG+and+building+my+first+retrieval-augmented+AI+app%21+Let%27s+do+this%21%0A%0A**Please+wait+about+15+seconds.+This+issue+will+automatically+close+and+the+README+will+update+with+your+next+instructions.**)
4444

45-
[![Static Badge](https://img.shields.io/badge/Quest-I_want_to_build_an_AI_Agent-violet)](../../issues/new?title=Quest:+I+want+to+build+an+agent&labels=quest&body=%F0%9F%A4%96+Let%27s+build+an+AI+agent+that+can+help+and+interact+with+users%21+Excited+for+this+step%21%0A%0A**Please+wait+about+15+seconds.+This+issue+will+automatically+close+and+the+README+will+update+with+your+next+instructions.**)
46-
4745
[![Static Badge](https://img.shields.io/badge/Quest-I_want_to_explore_frameworks-yellow)](../../issues/new?title=Quest:+I+want+to+explore+frameworks&labels=quest&body=🛠️+Let%27s+explore+frameworks+and+build+something+amazing%21+Excited+to+learn+and+experiment%21%0A%0A**Please+wait+about+15+seconds.+This+issue+will+automatically+close+and+the+README+will+update+with+your+next+instructions.**)
4846

47+
[![Static Badge](https://img.shields.io/badge/Quest-I_want_to_build_an_AI_Agent-violet)](../../issues/new?title=Quest:+I+want+to+build+an+agent&labels=quest&body=%F0%9F%A4%96+Let%27s+build+an+AI+agent+that+can+help+and+interact+with+users%21+Excited+for+this+step%21%0A%0A**Please+wait+about+15+seconds.+This+issue+will+automatically+close+and+the+README+will+update+with+your+next+instructions.**)
48+
4949
[![Static Badge](https://img.shields.io/badge/Quest-I_want_to_use_MCP_tools-cyan)](../../issues/new?title=Quest:+I+want+to+use+MCP+tools&labels=quest&body=🔧+Time+to+dive+into+MCP+tools%21+Let%27s+get+started%21%0A%0A**Please+wait+about+15+seconds.+This+issue+will+automatically+close+and+the+README+will+update+with+your+next+instructions.**)
5050

5151
[![Static Badge](https://img.shields.io/badge/Quest-I_want_to_automate_code_reviews-crimson)](../../issues/new?title=Quest:+I+want+to+automate+code+reviews&labels=quest&body=📄+Let%27s+use+AI+to+review+your+code%21%0A%0A**Please+click+on+Create+below,+then+wait+about+15+seconds.+This+issue+will+automatically+close+and+the+README+will+update+with+your+next+instructions.**)

.github/steps/1-genai-prototype.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ With GitHub Models, you can use GitHub Personal Access Tokens (PAT) to authentic
2222

2323
1. Right click [GitHub Models](https://github.com/marketplace/models) and open in a new tab
2424

25-
‼️ Open the link IN A NEW TAB so you can keep this page open for reference.‼️
25+
> [!NOTE]
26+
> Open the link IN A NEW TAB so you can keep this page open for reference.
2627
2728
2. Click on **explore the full model catalog** to see the available models.
2829

.github/steps/2-to-azure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ In this step, you will learn how to deploy your AI model to Azure AI Foundry aft
2424
> If you have done the previous quest, ensure you pull your changes from GitHub using `git pull` before continuing with this project to update the project README.
2525
2626
## 🧠 GitHub Models to Azure AI Foundry
27-
28-
‼️ The following steps on GitHub Models should be in A SEPARATE BROWSER TAB. Keep this tab open for reference.
27+
> [!Note]
28+
> The following steps on GitHub Models should be in A SEPARATE BROWSER TAB. Keep this tab open for reference.
2929
3030
1. On the separate tab on the GitHub models playground, click on **Use this model** and select **Language: JavaScript** and **SDK: Azure AI Inference SDK**.
3131

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ To complete this quest and **AUTOMATICALLY UPDATE** your progress, you MUST push
105105

106106
2. After pushing your changes, **WAIT ABOUT 15 SECONDS FOR GITHUB ACTIONS TO UPDATE YOUR README**.
107107

108-
**Checklist**
109-
110-
[![Complete Quest](https://img.shields.io/badge/Complete--Quest-ff3860?logo=esbuild)](/issues/new?title=Quest:+I+want+a+Production-Ready+Template+to+customize&labels=quest&body=🚀+I%27ve+browsed+through+the+AI+App+Template+gallery%21%0A%0A**After+you+click+on+Create+below,+wait+about+15+seconds.+This+issue+will+automatically+close,+and+the+README+will+update+with+your+next+instructions.**)
108+
> To skip this quest and select a different one, click this button:
109+
>
110+
> [![Skip to another quest](https://img.shields.io/badge/Skip--to--another--quest-ff3860?logo=mattermost)](../../issues/new?title=Skip+quest&labels=reset-quest&body=🔄+I+want+to+reset+my+AI+learning+quest+and+start+from+the+beginning.%0A%0A**Please+wait+about+15+seconds.+Your+progress+will+be+reset,+this+issue+will+automatically+close,+and+you+will+be+taken+back+to+the+Welcome+step+to+select+a+new+quest.**)
111111

112112
## 📚 Further Reading
113113

File renamed without changes.

.github/workflows/0-welcome.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,21 @@ jobs:
5252
elif [[ "$TITLE" == *"first AI app with RAG"* ]]; then
5353
echo "quest=4" >> $GITHUB_OUTPUT
5454
echo "to_step=4" >> $GITHUB_OUTPUT
55-
elif [[ "$TITLE" == *"interact with users"* ]]; then
55+
elif [[ "$TITLE" == *"explore frameworks"* ]]; then
5656
echo "quest=5" >> $GITHUB_OUTPUT
5757
echo "to_step=5" >> $GITHUB_OUTPUT
58-
elif [[ "$TITLE" == *"explore frameworks"* ]]; then
58+
elif [[ "$TITLE" == *"build an agent"* ]]; then
5959
echo "quest=6" >> $GITHUB_OUTPUT
6060
echo "to_step=6" >> $GITHUB_OUTPUT
6161
elif [[ "$TITLE" == *"MCP tools"* ]]; then
6262
echo "quest=7" >> $GITHUB_OUTPUT
6363
echo "to_step=7" >> $GITHUB_OUTPUT
64-
elif [[ "$TITLE" == *"create templates"* ]]; then
64+
elif [[ "$TITLE" == *"automate code reviews"* ]]; then
6565
echo "quest=8" >> $GITHUB_OUTPUT
6666
echo "to_step=8" >> $GITHUB_OUTPUT
67-
elif [[ "$TITLE" == *"build an agent"* ]]; then
67+
elif [[ "$TITLE" == *"create templates"* ]]; then
6868
echo "quest=9" >> $GITHUB_OUTPUT
6969
echo "to_step=9" >> $GITHUB_OUTPUT
70-
elif [[ "$TITLE" == *"automate code reviews"* ]]; then
71-
echo "quest=10" >> $GITHUB_OUTPUT
72-
echo "to_step=10" >> $GITHUB_OUTPUT
7370
else
7471
echo "quest=0" >> $GITHUB_OUTPUT
7572
echo "to_step=1" >> $GITHUB_OUTPUT

.github/workflows/7-mcp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
if: >-
3232
${{ !github.event.repository.is_template
33-
&& needs.get_current_step.outputs.current_step == 6 }}
33+
&& needs.get_current_step.outputs.current_step == 7 }}
3434
3535
runs-on: ubuntu-latest
3636

@@ -50,7 +50,7 @@ jobs:
5050
echo "agent_exists=false" >> $GITHUB_OUTPUT
5151
fi
5252
53-
- name: Update to step 7
53+
- name: Update to step 8
5454
if: steps.check_node-os-mcp.outputs.node-os-mcp_exists == 'true'
5555
uses: skills/action-update-step@v2
5656
with:
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Step 8, Complete Quest - Code Review
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- "code-review.genai.js"
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
get_current_step:
16+
name: Check current step number
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- id: get_step
22+
run: echo "current_step=$(cat ./.github/steps/-step.txt)" >> $GITHUB_OUTPUT
23+
outputs:
24+
current_step: ${{ steps.get_step.outputs.current_step }}
25+
26+
27+
on_ghmodelcode:
28+
name: Add code review script
29+
needs: get_current_step
30+
31+
if: >-
32+
${{ !github.event.repository.is_template
33+
&& needs.get_current_step.outputs.current_step == 8 }}
34+
35+
# We'll run Ubuntu for performance instead of Mac or Windows.
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
# We'll need to check out the repository so that we can edit the README.
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
with:
43+
fetch-depth: 0 # Let's get all the branches.
44+
45+
- name: Check package.json
46+
uses: skills/action-check-file@v1
47+
with:
48+
file: "code-review.genai.js"
49+
search: "GITHUB_TOKEN"
50+
51+
# In README.md, switch step 2 for step 3.
52+
- name: Update to step 9
53+
uses: skills/action-update-step@v2
54+
with:
55+
token: ${{ secrets.GITHUB_TOKEN }}
56+
from_step: 8
57+
to_step: 9

.github/workflows/9-code-review.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Step 8, Complete Quest - Templates
1+
name: Step 9, Complete Quest - Templates
22

33
on:
44
workflow_dispatch:
@@ -18,12 +18,12 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
2020

21-
- name: Update to step 9
21+
- name: Update to step 10
2222
uses: skills/action-update-step@v2
2323
with:
2424
token: ${{ secrets.GITHUB_TOKEN }}
25-
from_step: 8
26-
to_step: 9
25+
from_step: 9
26+
to_step: 10
2727

2828
- name: Comment and close issue
2929
uses: peter-evans/close-issue@v3

0 commit comments

Comments
 (0)