Skip to content

Commit

Permalink
Merge pull request ordinals-wallet#3694 from ordinals-wallet/chriscon…
Browse files Browse the repository at this point in the history
…firm-patch-20

Update rust.yml
  • Loading branch information
chrisconfirm authored Aug 30, 2023
2 parents 08ebf33 + fc0b0df commit b83f409
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
#Experimental Auto-format starts here
#needed?: - uses: actions/setup-node@v3
# with:
# node-version: 16
- name: Auto-Format with pretty-quick
run: npx -p [email protected] -p [email protected] pretty-quick --staged --branch origin
- name: Commit auto-formatted files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'pull_request'}}
with:
commit_message: "style: format files"
#Experimental Auto-format ends here
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -24,10 +38,10 @@ jobs:
with:
node-version: 16
- name: Auto-Format with pretty-quick
run: npx -p [email protected] -p [email protected] pretty-quick --staged --branch main
run: npx -p [email protected] -p [email protected] pretty-quick --staged --branch origin
- name: Commit auto-formatted files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit auto-formatted files
uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.event_name == 'pull_request'}}
with:
Expand Down

0 comments on commit b83f409

Please sign in to comment.