File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 2020 value : ${{ jobs.create_exercise.outputs.issue-number }}
2121
2222permissions :
23- contents : write
24- actions : write
25- issues : write
23+ contents : write # Update Readme
24+ actions : write # Disable workflows
25+ issues : write # Create issue
2626
2727jobs :
2828 disable_workflows :
5959 with :
6060 repository : skills/exercise-toolkit
6161 path : exercise-toolkit
62- ref : start-exercise-workflow
62+ ref : dev # TODO: Change to tag
6363
6464 - name : Build welcome message from template
6565 id : build-issue-description
8888 ISSUE_BODY : ${{ steps.build-issue-description.outputs.updated-text }}
8989 EXERCISE_TITLE : ${{ inputs.exercise-title }}
9090
91- update_readme_buttons :
92- name : Update README Buttons
91+ update_readme :
92+ name : Update README
9393 runs-on : ubuntu-latest
94+ needs : create_exercise
9495
9596 steps :
9697 - uses : actions/checkout@v4
@@ -111,7 +112,7 @@ jobs:
111112 run : |
112113 # Add link to issue
113114 target='id="start-exercise"'
114- replacement='id="start-exercise" href="../../issues/1 "'
115+ replacement='id="start-exercise" href="../../issues/${{ needs.create_exercise.outputs.issue-number }} "'
115116 sed -i "s|$target|$replacement|g" README.md
116117
117118 # Change color from gray to green
You can’t perform that action at this time.
0 commit comments