This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
IPC-304: add permissioned flag to disable validator changes #51
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 | |
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@v2 | |
with: | |
node-version: '14' | |
- name: Install Prettier and Prettier Solidity Plugin | |
run: npm install --save-dev prettier prettier-plugin-solidity | |
- name: Run Prettier on JavaScript/TypeScript/JSON/CSS/MD | |
run: npx prettier --write '**/*.{js,jsx,ts,tsx,json,css,md}' | |
- name: Run Prettier on Solidity Files | |
run: npx prettier --write '**/*.sol' | |
- name: Debugging - Show changed files | |
run: git restore package-lock.json && git status && git diff --name-only | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Apply Prettier formatting | |
branch: ${{ github.head_ref }} |