Skip to content
Closed
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
8 changes: 7 additions & 1 deletion .github/workflows/2-step.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Step 2

on:
pull_request:
pull_request_target:
branches:
- main
types:
Expand All @@ -25,6 +25,7 @@ jobs:
# This job is optional. We often call it a "grading job". If the step is not graded, remove it.
check_step_work:
name: Check step work
if: github.event.pull_request.merged == true
Comment on lines 26 to +28
runs-on: ubuntu-latest
needs: [find_exercise]
env:
Expand All @@ -34,6 +35,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: main
Comment on lines 37 to +39

- name: Get response templates
uses: actions/checkout@v5
Expand Down Expand Up @@ -105,6 +108,7 @@ jobs:

post_next_step_content:
name: Post next step content
if: github.event.pull_request.merged == true
needs: [find_exercise, check_step_work]
runs-on: ubuntu-latest
env:
Expand All @@ -114,6 +118,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: main
Comment on lines 120 to +122

- name: Get response templates
uses: actions/checkout@v5
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/3-last-step.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Step 3 # Last step of the exercise

on:
pull_request:
pull_request_target:
branches:
- main
types:
Expand All @@ -24,6 +24,7 @@ jobs:

post_review_content:
name: Post review content
if: github.event.pull_request.merged == true
Comment on lines 25 to +27
needs: [find_exercise] # if check_step_work then "needs: [find_exercise, check_step_work]"
runs-on: ubuntu-latest
env:
Expand All @@ -33,6 +34,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: main
Comment on lines 36 to +38

- name: Get response templates
uses: actions/checkout@v5
Expand Down Expand Up @@ -62,6 +65,7 @@ jobs:

finish_exercise:
name: Finish Exercise
if: github.event.pull_request.merged == true
needs: [find_exercise, post_review_content]
uses: skills/exercise-toolkit/.github/workflows/finish-exercise.yml@v0.8.1
with:
Expand Down