From 720bb6e8876e3520c7773ece448b95f8abe590e8 Mon Sep 17 00:00:00 2001 From: nextcloud-android-bot Date: Fri, 10 Feb 2023 03:11:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'.github/workfl?= =?UTF-8?q?ows/'=20with=20remote=20'config/workflows/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nextcloud-android-bot --- .github/workflows/autoApproveDependabot.yml | 4 ++-- .github/workflows/autoApproveSync.yml | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autoApproveDependabot.yml b/.github/workflows/autoApproveDependabot.yml index 0b9027516..4d65e886a 100644 --- a/.github/workflows/autoApproveDependabot.yml +++ b/.github/workflows/autoApproveDependabot.yml @@ -1,5 +1,5 @@ # synced from @nextcloud/android-config -name: Dependabot +name: Auto approve dependabot on: pull_request_target: @@ -17,7 +17,7 @@ concurrency: jobs: auto-approve: - name: Auto approve + name: Auto approve dependabot runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' permissions: diff --git a/.github/workflows/autoApproveSync.yml b/.github/workflows/autoApproveSync.yml index 707ef9b80..aa7279581 100644 --- a/.github/workflows/autoApproveSync.yml +++ b/.github/workflows/autoApproveSync.yml @@ -1,19 +1,29 @@ # synced from @nextcloud/android-config -name: Auto approve +name: Auto approve sync on: pull_request_target: branches: - master - main + types: + - opened + - reopened + - synchronize + - labeled + +concurrency: + group: sync-approve-${{ github.head_ref || github.run_id }} + cancel-in-progress: true permissions: pull-requests: write jobs: auto-approve: + name: Auto approve sync runs-on: ubuntu-latest + if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }} steps: - uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0 - if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }} with: github-token: "${{ secrets.GITHUB_TOKEN }}"