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

index 00525d27987bc4dc3ca9f27f1855b98dca53d0e0..adfbc6d40ded22b3a4eb1df887752cbeeb13d659 100644 (file)
@@ -24,7 +24,7 @@ jobs:
     runs-on: ubuntu-latest
     if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
     steps:
-      - name: Move issue to ${{ env.todo }}
+      - name: Set issue status to ${{ env.todo }}
         uses: leonsteinhaeuser/project-beta-automations@v1.2.1
         with:
           gh_token: ${{ secrets.GH_TOKEN }}
@@ -35,9 +35,9 @@ jobs:
   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')
+    if: github.event_name == 'pull_request_target' && (github.event.action == 'opened' || github.event.action == 'reopened')
     steps:
-      - name: Move PR to ${{ env.in_progress }}
+      - name: Set PR status to ${{ env.in_progress }}
         uses: leonsteinhaeuser/project-beta-automations@v1.2.1
         with:
           gh_token: ${{ secrets.GH_TOKEN }}