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 34
34
run : |
35
35
: parse toolchain version
36
36
if [[ -z $toolchain ]]; then
37
+ # GitHub does not enforce `required: true` inputs itself. https://github.com/actions/runner/issues/1070
37
38
echo "'toolchain' is a required input" >&2
38
39
exit 1
39
40
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
33
33
if [[ $rev == 1* ]]; then
34
34
sed -i " /^ toolchain:/,+2d; s/\$ {{inputs\.toolchain}}/$rev /" action.yml
35
35
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
37
37
fi
38
38
git add action.yml
39
39
git commit --quiet --message " toolchain: $rev "
You can’t perform that action at this time.
0 commit comments