Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e763ec4895 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
rust: 1.0.0
|
rust: 1.0.0
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v4
|
||||||
- uses: ./
|
- uses: ./
|
||||||
name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}}
|
name: Run dtolnay/rust-toolchain${{contains(matrix.rust, ' ') && ' for ' || '@'}}${{matrix.rust}}
|
||||||
id: toolchain
|
id: toolchain
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
name: cargo test
|
name: cargo test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- run: cargo test --all-features
|
- run: cargo test --all-features
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
: parse toolchain version
|
: parse toolchain version
|
||||||
if [[ -z $toolchain ]]; then
|
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
|
echo "'toolchain' is a required input" >&2
|
||||||
exit 1
|
exit 1
|
||||||
elif [[ $toolchain =~ ^stable' '[0-9]+' '(year|month|week|day)s?' 'ago$ ]]; then
|
elif [[ $toolchain =~ ^stable' '[0-9]+' '(year|month|week|day)s?' 'ago$ ]]; then
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ for rev in `releases` stable beta nightly; do
|
|||||||
if [[ $rev == 1* ]]; then
|
if [[ $rev == 1* ]]; then
|
||||||
sed -i "/^ toolchain:/,+2d; s/\${{inputs\.toolchain}}/$rev/" action.yml
|
sed -i "/^ toolchain:/,+2d; s/\${{inputs\.toolchain}}/$rev/" action.yml
|
||||||
else
|
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
|
fi
|
||||||
git add action.yml
|
git add action.yml
|
||||||
git commit --quiet --message "toolchain: $rev"
|
git commit --quiet --message "toolchain: $rev"
|
||||||
|
|||||||
Reference in New Issue
Block a user