Skip to content

Commit 0f6c16d

Browse files
authored
fix: issue with escaping content
1 parent 204b46a commit 0f6c16d

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,11 @@ jobs:
126126
run: |
127127
issue_url=$(gh issue create \
128128
--title "Exercise: $EXERCISE_NAME" \
129-
--body "${{ steps.build-issue-description.outputs.updated-text }}")
129+
--body "$ISSUE_BODY")
130130
echo "ISSUE_URL=$issue_url" >> "$GITHUB_OUTPUT"
131131
env:
132132
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133+
ISSUE_BODY: ${{ steps.build-issue-description.outputs.updated-text }}
133134

134135
post_next_step_content:
135136
name: Post next step content

.github/workflows/1-preparing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ jobs:
6767
env:
6868
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6969

70-
7170
- name: Build message - step finished
7271
id: build-message-step-finish
7372
uses: skills/action-text-variables@v1
@@ -79,10 +78,11 @@ jobs:
7978
- name: Update comment - step finished
8079
run: |
8180
gh issue comment "$ISSUE_URL" \
82-
--body "${{ steps.build-message-step-finish.outputs.updated-text }}" \
81+
--body "$ISSUE_BODY" \
8382
--edit-last
8483
env:
8584
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
ISSUE_BODY: ${{ steps.build-message-step-finish.outputs.updated-text }}
8686

8787
post_next_step_content:
8888
name: Post next step content

.github/workflows/2-first-introduction.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ jobs:
8080
- name: Update comment - step finished
8181
run: |
8282
gh issue comment "$ISSUE_URL" \
83-
--body "${{ steps.build-message-step-finish.outputs.updated-text }}" \
83+
--body "$ISSUE_BODY" \
8484
--edit-last
8585
env:
8686
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
ISSUE_BODY: ${{ steps.build-message-step-finish.outputs.updated-text }}
8788

8889
post_next_step_content:
8990
name: Post next step content

.github/workflows/3-copilot-edits.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ jobs:
8080
- name: Update comment - step finished
8181
run: |
8282
gh issue comment "$ISSUE_URL" \
83-
--body "${{ steps.build-message-step-finish.outputs.updated-text }}" \
83+
--body "$ISSUE_BODY" \
8484
--edit-last
8585
env:
8686
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
ISSUE_BODY: ${{ steps.build-message-step-finish.outputs.updated-text }}
8788

8889
post_next_step_content:
8990
name: Post next step content

.github/workflows/4-copilot-on-github.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ jobs:
7878
- name: Update comment - step finished
7979
run: |
8080
gh issue comment "$ISSUE_URL" \
81-
--body "${{ steps.build-message-step-finish.outputs.updated-text }}" \
81+
--body "$ISSUE_BODY" \
8282
--edit-last
8383
env:
8484
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
ISSUE_BODY: ${{ steps.build-message-step-finish.outputs.updated-text }}
8586

8687
post_review_content:
8788
name: Post review content
@@ -165,9 +166,10 @@ jobs:
165166
- name: Create comment - exercise finished
166167
run: |
167168
gh issue comment "$ISSUE_URL" \
168-
--body "${{ steps.build-finish-message.outputs.updated-text }}"
169+
--body "$ISSUE_BODY"
169170
env:
170171
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
172+
ISSUE_BODY: ${{ steps.build-finish-message.outputs.updated-text }}
171173

172174
- name: Close issue
173175
run: gh issue close "$ISSUE_URL"

0 commit comments

Comments
 (0)