Added approximate
number field (#61)
#45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format Rust Code | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev | |
version: 1.0 | |
- uses: actions/checkout@v3 | |
- name: Format code | |
run: cargo fmt | |
- name: Setup committer | |
run: | | |
git config --local user.name "Matrix Busters Automatic Agent" | |
git config --local user.email "[email protected]" | |
- name: Commit changes | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
git diff | |
git commit -am "Rust code reformatted automatically" | |
fi | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 |