Fix CI
This commit is contained in:
7
.github/workflows/ci-server.yaml
vendored
7
.github/workflows/ci-server.yaml
vendored
@ -8,15 +8,12 @@ jobs:
|
|||||||
server-test:
|
server-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "GITHUB_HEAD_REF: ${{ github.head_ref }}"
|
|
||||||
- run: echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
|
|
||||||
- run: echo "GITHUB_REF: ${{ github.ref }}"
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
if: github.head_ref == 'main'
|
if: github.event_name != 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref || github.ref_name }}
|
ref: ${{ github.head_ref || github.ref_name }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
if: github.head_ref != 'main'
|
if: github.head_ref == 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: "refs/pull/${{ github.event.number }}/merge"
|
ref: "refs/pull/${{ github.event.number }}/merge"
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
|
|||||||
Reference in New Issue
Block a user