develop source ci

This commit is contained in:
qiaofeng1227 2023-07-05 10:24:59 +08:00
parent 8d6da23f7d
commit c7ae1e1658
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: Pull Request Workflow
name: develop Workflow
on:
pull_request:
@ -12,8 +12,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Fetch all branches
run: git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
- name: Checkout pull request branch
run: git checkout origin/pr/${{ github.pr_number }}
- name: Test
run: |

View File

@ -1,4 +1,4 @@
name: Pull Request Workflow
name: Main Workflow
on:
pull_request:
@ -12,8 +12,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Test
run: |