Skip to content

Commit dd17c3f

Browse files
authored
Add finish messages to workflows
1 parent f5fddb0 commit dd17c3f

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/1-step.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ jobs:
3737
path: exercise-toolkit
3838
ref: v0.6.0
3939

40+
- name: Build message - step finished
41+
id: build-message-step-finish
42+
uses: skills/action-text-variables@v2
43+
with:
44+
template-file: exercise-toolkit/markdown-templates/step-feedback/step-finished-prepare-next-step.md
45+
template-vars: |
46+
next_step_number: 2
47+
48+
- name: Update comment - step finished
49+
run: |
50+
gh issue comment "$ISSUE_URL" \
51+
--body "$ISSUE_BODY"
52+
env:
53+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
ISSUE_BODY: ${{ steps.build-message-step-finish.outputs.updated-text }}
55+
4056
- name: Create comment - add step content
4157
run: |
4258
gh issue comment "$ISSUE_URL" \

.github/workflows/2-step.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ jobs:
3737
path: exercise-toolkit
3838
ref: v0.6.0
3939

40+
- name: Build message - step finished
41+
id: build-message-step-finish
42+
uses: skills/action-text-variables@v2
43+
with:
44+
template-file: exercise-toolkit/markdown-templates/step-feedback/step-finished-prepare-next-step.md
45+
template-vars: |
46+
next_step_number: 3
47+
48+
- name: Update comment - step finished
49+
run: |
50+
gh issue comment "$ISSUE_URL" \
51+
--body "$ISSUE_BODY"
52+
env:
53+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
ISSUE_BODY: ${{ steps.build-message-step-finish.outputs.updated-text }}
55+
4056
- name: Create comment - add step content
4157
run: |
4258
gh issue comment "$ISSUE_URL" \

.github/workflows/3-step.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@ jobs:
7474
path: exercise-toolkit
7575
ref: v0.6.0
7676

77+
- name: Build message - step finished
78+
id: build-message-step-finish
79+
uses: skills/action-text-variables@v2
80+
with:
81+
template-file: exercise-toolkit/markdown-templates/step-feedback/step-finished-prepare-next-step.md
82+
template-vars: |
83+
next_step_number: 4
84+
85+
- name: Update comment - step finished
86+
run: |
87+
gh issue comment "$ISSUE_URL" \
88+
--body "$ISSUE_BODY"
89+
env:
90+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
ISSUE_BODY: ${{ steps.build-message-step-finish.outputs.updated-text }}
92+
7793
- name: Create comment - add step content
7894
run: |
7995
gh issue comment "$ISSUE_URL" \

0 commit comments

Comments
 (0)