We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b07ba commit 87f0783Copy full SHA for 87f0783
action.yml
@@ -33,7 +33,11 @@ runs:
33
- id: parse
34
run: |
35
: parse toolchain version
36
- if [[ $toolchain =~ ^stable' '[0-9]+' '(year|month|week|day)s?' 'ago$ ]]; then
+ if [[ -z $toolchain ]]; then
37
+ # GitHub does not enforce `required: true` inputs itself. https://github.com/actions/runner/issues/1070
38
+ echo "'toolchain' is a required input" >&2
39
+ exit 1
40
+ elif [[ $toolchain =~ ^stable' '[0-9]+' '(year|month|week|day)s?' 'ago$ ]]; then
41
if [[ ${{runner.os}} == macOS ]]; then
42
echo "toolchain=1.$((($(date -v-$(sed 's/stable \([0-9]*\) \(.\).*/\1\2/' <<< $toolchain) +%s)/60/60/24-16569)/7/6))" >> $GITHUB_OUTPUT
43
else
0 commit comments