Skip to content

Commit d60f36b

Browse files
chore: upgrade action-text-variables to v2 and update variable syntax in workflows (#32)
1 parent eb38f0d commit d60f36b

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/workflows/finish-exercise.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232

3333
- name: Build congratulations message from template
3434
id: build-new-readme
35-
uses: skills/action-text-variables@v1
35+
uses: skills/action-text-variables@v2
3636
with:
3737
template-file: exercise-toolkit/markdown-templates/readme/exercise-finished.md
3838
template-vars: |
39-
login=${{ github.actor }}
40-
issue_url=${{ inputs.issue-url }}
39+
login: ${{ github.actor }}
40+
issue_url: ${{ inputs.issue-url }}
4141
4242
- name: Overwrite README
4343
env:
@@ -65,12 +65,12 @@ jobs:
6565

6666
- name: Build message - exercise finished
6767
id: build-finish-message
68-
uses: skills/action-text-variables@v1
68+
uses: skills/action-text-variables@v2
6969
with:
7070
template-file: exercise-toolkit/markdown-templates/step-feedback/exercise-finished.md
7171
template-vars: |
72-
login=${{ github.actor }}
73-
repo_full_name=${{ github.repository }}
72+
login: ${{ github.actor }}
73+
repo_full_name: ${{ github.repository }}
7474
7575
- name: Create comment - exercise finished
7676
run: |

.github/workflows/start-exercise.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ jobs:
6868

6969
- name: Build welcome message from template
7070
id: build-issue-description
71-
uses: skills/action-text-variables@v1
71+
uses: skills/action-text-variables@v2
7272
with:
7373
template-file: exercise-toolkit/markdown-templates/step-feedback/welcome.md
7474
template-vars: |
75-
title=${{ inputs.exercise-title }}
76-
login=${{ github.actor }}
77-
intro_message=${{ inputs.intro-message }}
75+
title: ${{ inputs.exercise-title }}
76+
login: ${{ github.actor }}
77+
intro_message: ${{ inputs.intro-message }}
7878
7979
- name: Create issue - add welcome message
8080
id: create-issue
@@ -111,13 +111,13 @@ jobs:
111111

112112
- name: Build welcome message from template
113113
id: build-new-readme
114-
uses: skills/action-text-variables@v1
114+
uses: skills/action-text-variables@v2
115115
with:
116116
template-file: exercise-toolkit/markdown-templates/readme/exercise-started.md
117117
template-vars: |
118-
title=${{ inputs.exercise-title }}
119-
login=${{ github.actor }}
120-
issue_url=${{ needs.create_exercise.outputs.issue-url }}
118+
title: ${{ inputs.exercise-title }}
119+
login: ${{ github.actor }}
120+
issue_url: ${{ needs.create_exercise.outputs.issue-url }}
121121
122122
- name: Overwrite README
123123
env:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ steps:
7676

7777
- name: Build message - congratulations
7878
id: build-message-congratulations
79-
uses: skills/action-text-variables@v1
79+
uses: skills/action-text-variables@v2
8080
with:
8181
template-file: exercise-toolkit/markdown-templates/readme/congratulations.md
8282
template-vars: |
83-
login=${{ github.actor }}
83+
login: ${{ github.actor }}
8484
8585
- name: Echo updated text
8686
run: echo "$UPDATED_TEXT"

0 commit comments

Comments
 (0)