2023-01-17 05:37:57 +03:00
|
|
|
# synced from @nextcloud/android-config
|
2023-02-13 05:44:59 +03:00
|
|
|
name: Auto approve sync
|
2023-01-11 17:32:46 +03:00
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- main
|
2023-02-13 05:44:59 +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:46 +03:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
auto-approve:
|
2023-02-13 05:44:59 +03:00
|
|
|
name: Auto approve sync
|
2023-01-11 17:32:46 +03:00
|
|
|
runs-on: ubuntu-latest
|
2023-02-13 05:44:59 +03:00
|
|
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
|
2023-01-11 17:32:46 +03:00
|
|
|
steps:
|
|
|
|
- uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0
|
|
|
|
with:
|
|
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|