Skip to content

Commit 961f6cd

Browse files
committed
updated exercise to do check if step1 is enabled
1 parent cbae023 commit 961f6cd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/0-start-exercise.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,20 @@ jobs:
8080
env:
8181
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8282

83-
- name: Enable next step workflow
83+
- name: Create comment - watching for progress
8484
run: |
85-
gh workflow enable "Step 1"
85+
gh issue comment "$ISSUE_URL" \
86+
--body-file "exercise-toolkit/markdown-templates/step-feedback/watching-for-progress.md"
8687
env:
8788
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8889

89-
- name: Create comment - watching for progress
90+
- name: Enable next step workflow
9091
run: |
91-
gh issue comment "$ISSUE_URL" \
92-
--body-file "exercise-toolkit/markdown-templates/step-feedback/watching-for-progress.md"
92+
gh workflow enable "Step 1"
9393
env:
9494
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9595

96-
96+
- name: Confirm Step 1 is enabled
97+
run: gh workflow view "Step 1" --json state
98+
env:
99+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)