From ab8ae3b7bed8d2c539f32b1548d1553592b62bb6 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Mon, 23 Jun 2025 22:02:16 -0400 Subject: [PATCH] Fix auto-approve for outdated list --- .github/workflows/outdated.yml | 13 +++++++++---- .github/workflows/pre-commit-auto-update.yml | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outdated.yml b/.github/workflows/outdated.yml index aba77af..e509f70 100644 --- a/.github/workflows/outdated.yml +++ b/.github/workflows/outdated.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - persist-credentials: false + persist-credentials: false - name: Install requirements run: | @@ -38,15 +38,20 @@ jobs: uses: peter-evans/create-pull-request@v7 with: commit-message: Update outdated dependencies list - labels: dependencies - title: "Chore: Update outdated dependencies list" + labels: cleanup-no-release-required, dependencies, github_actions + title: ⬆ Update outdated dependencies list body: | ```diff ${{ steps.check-outdated.outputs.changes }} ``` - branch: create-pull-request/outdated author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + branch: create-pull-request/outdated committer: GitHub + delete-branch: true + token: ${{ secrets.PHP_CURL_CLASS_BOT_TOKEN }} + push-to-fork: php-curl-class-helper/php-curl-class + env: + GITHUB_TOKEN: ${{ secrets.PHP_CURL_CLASS_BOT_TOKEN }} - name: Pull request created or updated if: ${{ steps.cpr.outputs.pull-request-number }} diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml index 50f3e0c..f59cbda 100644 --- a/.github/workflows/pre-commit-auto-update.yml +++ b/.github/workflows/pre-commit-auto-update.yml @@ -44,6 +44,7 @@ jobs: ${{ steps.gather-changes.outputs.changes }} ``` author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + branch: create-pull-request/pre-commit committer: GitHub delete-branch: true token: ${{ secrets.PHP_CURL_CLASS_BOT_TOKEN }}