File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -28,24 +28,22 @@ jobs:
28
28
with :
29
29
repository : skills/exercise-toolkit
30
30
path : exercise-toolkit
31
- ref : v0.1.0
31
+ ref : 5da8e8a723fc1ee7518ff7f2f93d8a8d19df1cde
32
32
33
- - name : Build message - congratulations
34
- id : build-message-congratulations
33
+ - name : Build congratulations message from template
34
+ id : build-new-readme
35
35
uses : skills/action-text-variables@v1
36
36
with :
37
- template-file : exercise-toolkit/markdown-templates/readme/congratulations .md
37
+ template-file : exercise-toolkit/markdown-templates/readme/exercise-finished .md
38
38
template-vars : |
39
39
login=${{ github.actor }}
40
+ issue_url=${{ inputs.issue-url }}
40
41
41
- - name : Update README - congratulations
42
- run : |
43
- # Add "Congratulations" to the start of the README
44
- orig_readme=$(cat README.md)
45
- new_readme="$CONGRATULATIONS_TEXT $orig_readme"
46
- echo "$new_readme" > README.md
42
+ - name : Overwrite README
47
43
env :
48
- CONGRATULATIONS_TEXT : ${{ steps.build-message-congratulations.outputs.updated-text }}
44
+ README_TEXT : ${{ steps.build-new-readme.outputs.updated-text }}
45
+ run : echo "$README_TEXT" > README.md
46
+
49
47
- name : Update README - congratulations
50
48
uses : EndBug/add-and-commit@v9
51
49
with :
You can’t perform that action at this time.
0 commit comments