瀏覽代碼

Merge pull request #2749 from nextcloud/repo-sync/android-config/master

🔄 synced file(s) with nextcloud/android-config
Andy Scherzinger 2 年之前
父節點
當前提交
fdf7c83883
共有 1 個文件被更改,包括 19 次插入5 次删除
  1. 19 5
      .github/workflows/autoApproveDependabot.yml

+ 19 - 5
.github/workflows/autoApproveDependabot.yml

@@ -1,16 +1,30 @@
-name: Auto approve
+# synced from @nextcloud/android-config
+name: Dependabot
+
 on:
   pull_request_target:
-    branches: [ master, stable-* ]
+    branches:
+      - main
+      - master
+      - stable-*
 
 permissions:
-  pull-requests: write
+  contents: read
+
+concurrency:
+  group: dependabot-approve-${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
 
 jobs:
   auto-approve:
+    name: Auto approve
     runs-on: ubuntu-latest
+    if: github.actor == 'dependabot[bot]'
+    permissions:
+      # needed to approve the PR
+      pull-requests: write
+
     steps:
       - uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # v3.1.0
-        if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
         with:
-          github-token: "${{ secrets.GITHUB_TOKEN }}"
+          github-token: ${{ secrets.GITHUB_TOKEN }}