mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Fix project automations failing from forks
This commit is contained in:
parent
3d3807ce41
commit
8f152aac69
12
.github/workflows/project-actions.yml
vendored
12
.github/workflows/project-actions.yml
vendored
@ -1,10 +1,11 @@
|
|||||||
name: Project automations
|
name: Project Automations
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
pull_request:
|
pull_request_target: #_target allows access to secrets
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
@ -12,7 +13,6 @@ on:
|
|||||||
- main
|
- main
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
# map fields with customized labels
|
|
||||||
env:
|
env:
|
||||||
todo: Todo
|
todo: Todo
|
||||||
done: Done
|
done: Done
|
||||||
@ -32,10 +32,10 @@ jobs:
|
|||||||
project_id: 2
|
project_id: 2
|
||||||
resource_node_id: ${{ github.event.issue.node_id }}
|
resource_node_id: ${{ github.event.issue.node_id }}
|
||||||
status_value: ${{ env.todo }} # Target status
|
status_value: ${{ env.todo }} # Target status
|
||||||
pr_opened_or_reopened_or_reviewrequested:
|
pr_opened_or_reopened:
|
||||||
name: pr_opened_or_reopened_or_reviewrequested
|
name: pr_opened_or_reopened
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Move PR to ${{ env.in_progress }}
|
- name: Move PR to ${{ env.in_progress }}
|
||||||
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
|
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user