update create-pr-4-dashboard.yml.
@@ -10,16 +10,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - name: pull-request
- id: open-pr
- uses: repo-sync/pull-request@v2
with:
- source_branch: "gen-static-indexjs"
- destination_branch: "master"
- github_token: ${{ secrets.GITHUB_TOKEN }}
- - name: output-url
- run: echo ${{steps.open-pr.outputs.pr_url}}
- - name: output-number
- run: echo ${{steps.open-pr.outputs.pr_number}}
- - name: output-has-changed-files
- run: echo ${{steps.open-pr.outputs.has_changed_files}}
\ No newline at end of file
+ ref: gen-static-indexjs
+ - run: |
+ git fetch --no-tags --depth=1 origin master
+ git checkout -b master
+ git checkout ${{ github.event.pull_request.head.sha }}
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
+ with:
+ base: master
+ signoff: true
+ branch: gen-static-indexjs
+ delete-branch: true
+ body: |
+ Update report
+ - Updated with *today's* date
+ - Auto-generated by [create-pull-request][1]
+
+ [1]: https://github.com/peter-evans/create-pull-request
+ labels: |
+ dromara-robot
+ reviewers: yu199195
+ - name: Check outputs
+ run: |
+ echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
+ echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
\ No newline at end of file
