diff --git a/.github/workflows/bump_lockfile.yml b/.github/workflows/bump_lockfile.yml index 4b7407c..6ee75e7 100644 --- a/.github/workflows/bump_lockfile.yml +++ b/.github/workflows/bump_lockfile.yml @@ -46,7 +46,9 @@ jobs: if: steps.git-diff.outputs.update_done == 'true' uses: peter-evans/create-pull-request@v7 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PL_PASTEURBOT_PAT_PUBLIC }} + committer: PasteurBot <${{ vars.PL_PASTEURBOT_EMAIL }}> + author: PasteurBot <${{ vars.PL_PASTEURBOT_EMAIL }}> commit-message: Update dependencies title: "chore: 📦 Update dependencies" branch: _bot/update-deps @@ -55,5 +57,3 @@ jobs: body: | This PR updates the lockfile to the latest versions of the dependencies. Please review the changes and merge when ready. - - To trigger CI checks, please close and reopen this PR. diff --git a/.github/workflows/pre-commit-cron-updater.yml b/.github/workflows/pre-commit-cron-updater.yml index e1ade7b..2efd347 100644 --- a/.github/workflows/pre-commit-cron-updater.yml +++ b/.github/workflows/pre-commit-cron-updater.yml @@ -58,9 +58,12 @@ jobs: - name: Create Pull Request (all good) if: steps.pre-commit.outputs.pre-commit-outcome == 'success' + id: create-pr-ok uses: peter-evans/create-pull-request@v7 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PL_PASTEURBOT_PAT_PUBLIC }} + committer: PasteurBot <${{ vars.PL_PASTEURBOT_EMAIL }}> + author: PasteurBot <${{ vars.PL_PASTEURBOT_EMAIL }}> commit-message: Update pre-commit hooks title: "chore: ✅ Update pre-commit hooks" branch: _bot/update-precommit @@ -68,11 +71,21 @@ jobs: body: | Pre-commit hooks have been updated successfully without conflicts. + - name: Enable auto-merge + if: steps.create-pr-ok.outputs.pull-request-operation == 'created' + uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.PL_PASTEURBOT_PAT_PUBLIC }} + pull-request-number: ${{ steps.create-pr-ok.outputs.pull-request-number }} + merge-method: squash + - name: Create Pull Request (conflicts) if: steps.pre-commit.outputs.pre-commit-outcome == 'failure' uses: peter-evans/create-pull-request@v7 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PL_PASTEURBOT_PAT_PUBLIC }} + committer: PasteurBot <${{ vars.PL_PASTEURBOT_EMAIL }}> + author: PasteurBot <${{ vars.PL_PASTEURBOT_EMAIL }}> commit-message: Update pre-commit hooks title: "chore: ⚠️ Update pre-commit hooks [review required]" branch: _bot/update-precommit