|
@@ -1,19 +1,29 @@
|
|
# synced from @nextcloud/android-config
|
|
# synced from @nextcloud/android-config
|
|
-name: Auto approve
|
|
|
|
|
|
+name: Auto approve sync
|
|
on:
|
|
on:
|
|
pull_request_target:
|
|
pull_request_target:
|
|
branches:
|
|
branches:
|
|
- master
|
|
- master
|
|
- main
|
|
- main
|
|
|
|
+ types:
|
|
|
|
+ - opened
|
|
|
|
+ - reopened
|
|
|
|
+ - synchronize
|
|
|
|
+ - labeled
|
|
|
|
+
|
|
|
|
+concurrency:
|
|
|
|
+ group: sync-approve-${{ github.head_ref || github.run_id }}
|
|
|
|
+ cancel-in-progress: true
|
|
|
|
|
|
permissions:
|
|
permissions:
|
|
pull-requests: write
|
|
pull-requests: write
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
auto-approve:
|
|
auto-approve:
|
|
|
|
+ name: Auto approve sync
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
+ if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
|
|
steps:
|
|
steps:
|
|
- uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0
|
|
- uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0
|
|
- if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
|
|
|
|
with:
|
|
with:
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|