Skip to content

Commit

Permalink
minor: use docker image when checking readme for rustc version
Browse files Browse the repository at this point in the history
Instead of running `cargo build`, just use the docker image we now
publish.
  • Loading branch information
yshavit authored Feb 28, 2025
1 parent 58fed50 commit e03e11f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/readme-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: docker pull yshavit/mdq
- name: find version mentioned in readme
id: readme-version
run: |
set -euo pipefail
pwd
mkdir -p target/debug
cargo build
readme_version="$(cat README.md | ./target/debug/mdq '# Development | P: "Requires rustc >=" ' | awk '{print $NF}')"
readme_version="$(cat README.md | docker run -i --rm yshavit/mdq '# Development | P: "Requires rustc >=" ' | awk '{print $NF}')"
echo "result=$readme_version" >> "$GITHUB_OUTPUT"
- name: pull cargo-msrv from docker hub
run: docker pull foresterre/cargo-msrv
Expand Down

0 comments on commit e03e11f

Please sign in to comment.