]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix project automations failing from forks
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 22 Mar 2022 07:55:23 +0000 (00:55 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Mar 2022 07:55:23 +0000 (00:55 -0700)
.github/workflows/project-actions.yml

index 9c1acfaa9041e3a0aa50057d365b00a4227aee3f..00525d27987bc4dc3ca9f27f1855b98dca53d0e0 100644 (file)
@@ -1,10 +1,11 @@
-name: Project automations
+name: Project Automations
+
 on:
   issues:
     types:
       - opened
       - reopened
-  pull_request:
+  pull_request_target: #_target allows access to secrets
     types:
       - opened
       - reopened
@@ -12,7 +13,6 @@ on:
       - main
       - dev
 
-# map fields with customized labels
 env:
   todo: Todo
   done: Done
@@ -32,10 +32,10 @@ jobs:
           project_id: 2
           resource_node_id: ${{ github.event.issue.node_id }}
           status_value: ${{ env.todo }} # Target status
-  pr_opened_or_reopened_or_reviewrequested:
-    name: pr_opened_or_reopened_or_reviewrequested
+  pr_opened_or_reopened:
+    name: pr_opened_or_reopened
     runs-on: ubuntu-latest
-    if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'review_requested')
+    if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened')
     steps:
       - name: Move PR to ${{ env.in_progress }}
         uses: leonsteinhaeuser/project-beta-automations@v1.2.1