This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
Split SubnetActor #449
Workflow file for this run
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
# .github/workflows/prettier.yml | |
name: Prettier | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21' | |
- name: Run formatter | |
run: make fmt | |
- name: Check diff clean | |
run: | | |
git restore package-lock.json | |
git status | |
git diff --name-only | |
git --no-pager diff --quiet | |
# - name: Commit changes | |
# uses: stefanzweifel/git-auto-commit-action@v5 | |
# with: | |
# commit_message: Apply Prettier formatting | |
# branch: ${{ github.head_ref }} |