mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-04-10 02:47:16 +00:00
Compare commits
3 commits
2dd6ec8cb7
...
f4c5953b3e
Author | SHA1 | Date | |
---|---|---|---|
|
f4c5953b3e | ||
|
a54c7afa93 | ||
|
aacd1c2ea3 |
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ runs:
|
|||
fi
|
||||
elif [[ $toolchain =~ ^stable' 'minus' '[0-9]+' 'releases?$ ]]; then
|
||||
echo "toolchain=1.$((($(date +%s)/60/60/24-16569)/7/6-${toolchain//[^0-9]/}))" >> $GITHUB_OUTPUT
|
||||
elif [[ $toolchain =~ ^1\.[0-9]+$ ]]; then
|
||||
echo "toolchain=1.$((i=${toolchain#1.}, c=($(date +%s)/60/60/24-16569)/7/6, i+9*i*(10*i<=c)+90*i*(100*i<=c)))" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "toolchain=$toolchain" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue