Skip to content

Commit 0185c06

Browse files
committed
Fix update-revs.sh to recognize only the intended required: true
1 parent 350b817 commit 0185c06

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ runs:
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

scripts/update-revs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)