Skip to content

Commit

Permalink
Initial Action
Browse files Browse the repository at this point in the history
  • Loading branch information
sbtaylor15 committed Dec 5, 2022
1 parent 9bb41b0 commit 5820c81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ runs:
- name: Get Rust Version from Cargo.toml
if: "${{ env.RUST_VERSION == '' }}"
run: |
pip3 install yq 2>&1 1>/dev/null
set -e
# yq includes tomlq
pip3 install yq 2>&1 1>/dev/null
echo "RUST_VERSION=$(tomlq -r ".package.rust" Cargo.toml 2>/dev/null || echo stable)" >> $GITHUB_ENV
# Clean older versions of rustfmt and cargo-fmt to prevent warnings
rm -f /home/runner/.cargo/bin/rustfmt
Expand Down Expand Up @@ -60,3 +62,4 @@ runs:
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ github.token }}

0 comments on commit 5820c81

Please sign in to comment.