aperta-principium/Interclip

View on GitHub
.github/workflows/format.yml

Summary

Maintainability
Test Coverage
name: File format
on:
  push:
    branches:
      - main
jobs:
  format:
    name: Format code
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v3.5.1
        with:
          node-version: 14.x
      - run: npx prettier --write .
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v5
        with:
          token: ${{ secrets.PAT }}
          assignees: filiptronicek
          reviewers: filiptronicek
          commit-message: Format files
          committer: GitHub <noreply@github.com>
          author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
          signoff: false
          branch: file-format
          delete-branch: true
          title: "refactor: Format code"
          body: |
            Format code
            - Updated the code with a very fancy format
            - Auto-generated by [create-pull-request][1]

            [1]: https://github.com/peter-evans/create-pull-request