Skip to content

Commit

Permalink
Update msrv.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmatthes committed Jun 9, 2023
1 parent 3cdab3b commit e942cff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ jobs:

- run: |
MSRV=$(rustc --version | cut -d\ -f2)
sed s/^msrv\ =\ \".*\"/msrv\ =\ \"$MSRV\"/g \
sed "s/^msrv\ =\ \".*\"/msrv\ =\ \"${MSRV}\"/g" \
.clippy.toml >> .clippy.toml.tmp
mv .clippy.toml.tmp .clippy.toml
sed s/^rust-version\ =\ \".*\"/rust-version\ =\ \"$MSRV\"/g \
sed "s/^rust-version\ =\ \".*\"/rust-version\ =\ \"${MSRV}\"/g" \
Cargo.toml >> Cargo.toml.tmp
mv Cargo.toml.tmp Cargo.toml
sed "s/MSRV-.*-green$/MSRV-"$MSRV"-green/g" src/lib.rs >> lib.rs
sed "s/MSRV-.*-green$/MSRV-${MSRV}-green/g" src/lib.rs >> lib.rs
mv lib.rs src/
git add .clippy.toml Cargo.toml src/lib.rs
git commit --allow-empty -m "Changed ::= MSRV: "$MSRV
git commit --allow-empty -m "Changed ::= MSRV: ${MSRV}"
- uses: peter-evans/create-pull-request@v5.0.1
with:
Expand Down

0 comments on commit e942cff

Please sign in to comment.