55 types :
66 - opened
77 pull_request_target :
8- types :
9- - opened
108 pull_request :
11- types :
12- - opened
139
1410jobs :
11+ debug :
12+ name : debug
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Print event name
16+ run : echo ${{ github.event_name }}
17+ - name : Print event action
18+ run : echo ${{ github.event.action }}
19+
1520 issue_opened :
1621 name : issue_opened
1722 runs-on : ubuntu-latest
@@ -20,22 +25,26 @@ jobs:
2025 - name : ' Move issue to Todo'
2126 uses : leonsteinhaeuser/project-beta-automations@v2.1.0
2227 with :
23- gh_token : ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
28+ gh_app_ID : ${{ vars.GH_APP_ID }}
29+ gh_app_installation_ID : ${{ vars.GH_APP_INSTALLATION_ID }}
30+ gh_app_secret_key : ${{ secrets.GH_APP_SECRET_KEY }}
31+ project_id : ${{ vars.PROJECT_ID }}
2432 user : leonsteinhaeuser
25- project_id : ${{ secrets.PROJECT_ID }}
2633 resource_node_id : ${{ github.event.issue.node_id }}
2734 status_value : " Todo"
2835
2936 pr_opened :
3037 name : pr_opened
3138 runs-on : ubuntu-latest
32- if : github.event_name == 'pull_request' && github.event.action == 'opened'
39+ if : github.event_name == 'pull_request' && ( github.event.action == 'opened' || github.event.action == 'synchronize')
3340 steps :
3441 - name : ' Move PR to "In Progress"'
3542 uses : leonsteinhaeuser/project-beta-automations@v2.1.0
3643 with :
37- gh_token : ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
44+ gh_app_ID : ${{ vars.GH_APP_ID }}
45+ gh_app_installation_ID : ${{ vars.GH_APP_INSTALLATION_ID }}
46+ gh_app_secret_key : ${{ secrets.GH_APP_SECRET_KEY }}
47+ project_id : ${{ vars.PROJECT_ID }}
3848 user : leonsteinhaeuser
39- project_id : ${{ secrets.PROJECT_ID }}
4049 resource_node_id : ${{ github.event.pull_request.node_id }}
4150 status_value : " In Progress"
0 commit comments