name: Recompile dist/ on Renovate PR on: pull_request: types: [opened, synchronize] paths: - package.json - pnpm-lock.yaml - index.js - monitor.js permissions: contents: write jobs: recompile: runs-on: pi if: | (github.actor == 'renovate[bot]' || contains(github.head_ref, 'renovate/')) && !contains(github.event.head_commit.message, '[skip compile]') steps: - name: Checkout PR Branch uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ github.head_ref }} fetch-depth: 0 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '20' - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - name: Clean Install run: pnpm install --frozen-lockfile --ignore-scripts shell: bash - name: Build run: pnpm run build shell: bash - name: Commit dist/ run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add dist/ if git diff --staged --quiet; then echo "No changes to dist/" else git commit -m "chore: compile action bundle [skip compile]" git push origin HEAD:${{ github.head_ref }} fi shell: bash