构建前执行分支合并 (#320)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
neveler 2025-11-02 22:32:51 +08:00 committed by GitHub
parent 70ba60e045
commit df53ff9f4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,12 +192,17 @@ jobs:
outputs:
artifact-id: ${{ steps.upload-site.outputs.artifact-id }}
steps:
- name: Checkout PR
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ needs.preview-create-init.outputs.sha }}
repository: ${{ needs.preview-create-init.outputs.repository }}
fetch-depth: 1
fetch-depth: 0
- name: Merge PR
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git fetch https://github.com/${{ needs.preview-create-init.outputs.repository }} ${{ needs.preview-create-init.outputs.sha }}
git merge --squash ${{ needs.preview-create-init.outputs.sha }} --no-edit
git commit -m "Merge #${{ env.GITHUB_PR_NUMBER }} for preview build"
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with: