Add Atomic CRM to boilerplates/templates list #21
Workflow file for this run
This file contains hidden or 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 README | |
| on: | |
| pull_request: | |
| paths: | |
| - "README.md" | |
| workflow_dispatch: | |
| jobs: | |
| format-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Format README | |
| run: node scripts/format-readme.js | |
| - name: Commit changes (if any) | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add README.md | |
| git diff --quiet && git diff --staged --quiet || git commit -m "Format README.md" | |
| # Empurra para a branch do PR | |
| git push origin HEAD:${{ github.head_ref }} |