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:
|
2023-03-17 05:42:43 +03:00
|
|
|
- uses: hmarr/auto-approve-action@44888193675f29a83e04faf4002fa8c0b537b1e4 # v3.2.1
|
2023-01-11 17:32:46 +03:00
|
|
|
with:
|
|
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|