Bump the minor-and-patch group across 1 directory with 5 updates #323
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: Precious | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| code-formatting: | |
| env: | |
| BASE_REF: ${{ github.base_ref }} | |
| runs-on: ubuntu-latest | |
| name: Code Formatting | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup mise | |
| uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Fetch base ref | |
| if: ${{ github.event.pull_request }} | |
| run: git fetch origin "${BASE_REF}" | |
| - name: Select files | |
| id: select-files | |
| run: | | |
| if [[ -n "${{ github.event.pull_request.number }}" ]]; then | |
| echo "precious-args=--git-diff-from origin/${BASE_REF}" >> "$GITHUB_OUTPUT" | |
| else | |
| echo 'precious-args=--all' >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Lint files | |
| run: precious lint ${PRECIOUS_ARGS} | |
| env: | |
| PRECIOUS_ARGS: ${{ steps.select-files.outputs.precious-args }} |