2023-01-17 05:38:02 +03:00
|
|
|
# synced from @nextcloud/android-config
|
2024-02-29 22:23:57 +03:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
# SPDX-FileCopyrightText: 2023 Álvaro Brey <alvaro@alvarobrey.com>
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-02-10 06:11:40 +03:00
|
|
|
name: Auto approve sync
|
2023-01-11 17:32:52 +03:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- main
|
2023-02-10 06:11:40 +03:00
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- reopened
|
|
|
|
- synchronize
|
|
|
|
- labeled
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: sync-approve-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
2023-01-11 17:32:52 +03:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
auto-approve:
|
2023-02-10 06:11:40 +03:00
|
|
|
name: Auto approve sync
|
2023-01-11 17:32:52 +03:00
|
|
|
runs-on: ubuntu-latest
|
2023-02-10 06:11:40 +03:00
|
|
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
|
2023-01-11 17:32:52 +03:00
|
|
|
steps:
|
2024-02-03 22:40:03 +03:00
|
|
|
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
|
2023-01-11 17:32:52 +03:00
|
|
|
with:
|
|
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|