Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #126 from trueberryless-org/update-template-files

[ci] sync template files

authored by

trueberryless and committed by
GitHub
91d49c8f 4a2d7436

+26 -32
+26 -32
.github/workflows/format.yaml
··· 1 - name: Format 2 - 1 + name: autofix.ci 3 2 on: 3 + pull_request: 4 4 push: 5 5 branches: [main] 6 + permissions: 7 + contents: read 6 8 7 9 jobs: 8 - format: 10 + autofix: 9 11 runs-on: ubuntu-latest 10 - permissions: 11 - contents: write 12 - pull-requests: write 13 12 steps: 14 13 - uses: actions/checkout@v4 15 - - uses: pnpm/action-setup@v4 16 - with: 17 - run_install: | 18 - - recursive: false 19 - args: [--frozen-lockfile] 20 - - args: [--global, prettier, sort-package-json] 21 - - uses: actions/setup-node@v4 14 + 15 + - name: Setup PNPM 16 + uses: pnpm/action-setup@v3 17 + 18 + - name: Setup Node 19 + uses: actions/setup-node@v4 22 20 with: 23 21 node-version: 20 24 22 cache: "pnpm" 25 - - name: Sort package.json 26 - run: find . -name "package.json" -not -path "*/node_modules/*" -exec sort-package-json {} \; 27 - - name: Format with Prettier 28 - run: pnpm prettier --write . 29 - - name: Create Pull Request 30 - uses: peter-evans/create-pull-request@v7 31 - with: 32 - token: ${{ secrets.PUBLIC_GITHUB_TOKEN }} 33 - commit-message: "[ci] format" 34 - committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 35 - author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> 36 - signoff: false 37 - branch: ci-format 38 - delete-branch: true 39 - title: "[ci] format" 40 - body: "This PR was automatically created to sort package.json files in the repository using sort-package-json and to format the repository using prettier." 41 - labels: 🤖 bot 42 - assignees: trueberryless 43 - draft: false 23 + 24 + - name: Install Dependencies 25 + run: pnpm i 26 + 27 + - name: Run prettier 28 + run: npx prettier --write . 29 + 30 + # Optimize all PNGs with https://pngquant.org/ 31 + - run: sudo apt-get update && sudo apt-get install -y pngquant 32 + - name: Run pngquant 33 + run: | 34 + shopt -s globstar 35 + find . -name '*.png' -exec pngquant --ext .png --force 256 {} \; 36 + 37 + - uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c