@@ -46,31 +46,18 @@ runs:
4646 - name : Push
4747 env :
4848 PR_TITLE_PREFIX : ${{inputs.pr-title-prefix}}
49- AUTHOR : ${{github.actor}}
5049 TOKEN : ${{inputs.github-token}}
51- REPOSITORY : ${{github.repository}}
5250 BRANCH_NAME_PREFIX : ${{inputs.branch-name-prefix}}
5351 NO_VERIFY : ${{inputs.no-verify}}
5452 if : steps.diff.outputs.result != '' && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch')
5553 working-directory : ${{inputs.working-directory}}
5654 run : ${{ github.action_path }}/scripts/action/push.sh
5755 shell : bash
58- - name : Set org name
59- uses : actions/github-script@v7.0.1
60- if : github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch'
61- id : set_org_name
62- with :
63- github-token : ${{inputs.github-token}}
64- result-encoding : string
65- script : |
66- const script = require('${{ github.action_path }}/scripts/action/set_org_name.js')
67- return script()
6856 - name : Get PullRequests
6957 uses : actions/github-script@v7.0.1
7058 if : steps.diff.outputs.result != '' && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch')
7159 id : get_pull_requests
7260 env :
73- ORG_NAME : ${{steps.set_org_name.outputs.result}}
7461 BRANCH_NAME_PREFIX : ${{inputs.branch-name-prefix}}
7562 with :
7663 github-token : ${{inputs.github-token}}
8370 if : steps.diff.outputs.result != '' && steps.get_pull_requests.outputs.result == 0 && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch')
8471 id : create_pull_request
8572 env :
86- ORG_NAME : ${{steps.set_org_name.outputs.result}}
8773 PR_DESCRIPTION_PREFIX : ${{inputs.pr-description-prefix}}
88- PR_NUMBER : ${{github.event.pull_request.number}}
8974 PR_TITLE_PREFIX : ${{inputs.pr-title-prefix}}
9075 BRANCH_NAME_PREFIX : ${{inputs.branch-name-prefix}}
9176 with :
9883 if : steps.diff.outputs.result != '' && steps.get_pull_requests.outputs.result == 0 && github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]'
9984 env :
10085 PR_NUMBER : ${{steps.create_pull_request.outputs.result}}
101- ASSIGN_USER : ${{github.event.pull_request.user.login}}
10286 with :
10387 github-token : ${{inputs.github-token}}
10488 script : |
10993 uses : actions/github-script@v7.0.1
11094 if : (github.event_name == 'pull_request' && (github.event.action == 'closed' || steps.diff.outputs.result == '')) || ((github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch') && steps.diff.outputs.result == '')
11195 env :
112- ORG_NAME : ${{steps.set_org_name.outputs.result}}
11396 BRANCH_NAME_PREFIX : ${{inputs.branch-name-prefix}}
11497 with :
11598 github-token : ${{inputs.github-token}}
0 commit comments