File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 3434 run : |
3535 : parse toolchain version
3636 if [[ -z $toolchain ]]; then
37+ # GitHub does not enforce `required: true` inputs itself. https://github.com/actions/runner/issues/1070
3738 echo "'toolchain' is a required input" >&2
3839 exit 1
3940 elif [[ $toolchain =~ ^stable' '[0-9]+' '(year|month|week|day)s?' 'ago$ ]]; then
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ for rev in `releases` stable beta nightly; do
3333 if [[ $rev == 1* ]]; then
3434 sed -i " /^ toolchain:/,+2d; s/\$ {{inputs\.toolchain}}/$rev /" action.yml
3535 else
36- sed -i " s/required: true/ required: false\n default: $rev /" action.yml
36+ sed -i " s/^ required: true$/ required: false\n default: $rev /" action.yml
3737 fi
3838 git add action.yml
3939 git commit --quiet --message " toolchain: $rev "
You can’t perform that action at this time.
0 commit comments