name: Run format on renovate update on: push: branches: - "renovate/oxfmt-**" - "renovate/major-oxfmt" - "renovate/prettier-**" - "renovate/major-prettier" permissions: contents: write jobs: run-format: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 with: ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }} - name: Install pnpm uses: pnpm/action-setup@v6 - uses: actions/setup-node@v7 with: node-version: 24 - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Run format run: pnpm run format - name: Check for added or modified files id: git-check-modified run: if [[ -z $(git status -s) ]]; then echo "modified=false" >> $GITHUB_OUTPUT ; else echo "modified=true" >> $GITHUB_OUTPUT ; fi - name: Commit report if: steps.git-check-modified.outputs.modified == 'true' run: | git add . git -c user.name="Christophe Hurpeau" \ -c user.email="christophehurpeau@users.noreply.github.com" \ commit -m "style: format" --author="github-actions[bot] " git push --no-verify