Compare commits

..

3 Commits
comment ... v1

Author SHA1 Message Date
David Tolnay
e97e2d8cc3 Update actions/checkout@v4 -> v5 2025-08-22 18:20:49 -07:00
David Tolnay
3bd6ba104c Merge pull request #168 from dtolnay/sed
Fix update-revs.sh to recognize only the intended `required: true`
2025-08-22 18:08:04 -07:00
David Tolnay
0185c06042 Fix update-revs.sh to recognize only the intended required: true 2025-08-22 18:03:43 -07:00
4 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ jobs:
rust: 1.0.0
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: ./
name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}}
id: toolchain

View File

@@ -16,7 +16,7 @@ jobs:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
```

View File

@@ -34,7 +34,7 @@ runs:
run: |
: parse toolchain version
if [[ -z $toolchain ]]; then
: GitHub does not enforce 'required: true' inputs itself. https://github.com/actions/runner/issues/1070
# GitHub does not enforce `required: true` inputs itself. https://github.com/actions/runner/issues/1070
echo "'toolchain' is a required input" >&2
exit 1
elif [[ $toolchain =~ ^stable' '[0-9]+' '(year|month|week|day)s?' 'ago$ ]]; then

View File

@@ -33,7 +33,7 @@ for rev in `releases` stable beta nightly; do
if [[ $rev == 1* ]]; then
sed -i "/^ toolchain:/,+2d; s/\${{inputs\.toolchain}}/$rev/" action.yml
else
sed -i "s/required: true/required: false\n default: $rev/" action.yml
sed -i "s/^ required: true$/ required: false\n default: $rev/" action.yml
fi
git add action.yml
git commit --quiet --message "toolchain: $rev"