build(ci): ensure combine PRs will only run on poolifier/poolifier repo
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 1 Sep 2023 09:45:04 +0000 (11:45 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 1 Sep 2023 09:45:04 +0000 (11:45 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/combine-prs.yml

index cdb164471363921b9ef887af80913138d53c08e8..cdad6af7962840a671a8fa4eae4a7a4900f2d249 100644 (file)
@@ -2,7 +2,7 @@ name: Combine PRs
 
 on:
   schedule:
-    - cron: '*/5 * * * *'
+    - cron: '0 0 * * *'
   workflow_dispatch:
 
 permissions:
@@ -12,6 +12,7 @@ permissions:
 
 jobs:
   combine-prs:
+    if: github.repository == 'poolifier/poolifier'
     runs-on: ubuntu-latest
 
     steps:
@@ -19,4 +20,4 @@ jobs:
         id: combine-prs
         uses: github/combine-prs@v3.1.2
         with:
-          github_token: ${{ secrets.SECRET_TOKEN }}
+          github_token: ${{ secrets.GH_TOKEN_PROTECTED }}