This commit is contained in:
Charles Bochet
2023-07-05 09:24:46 +02:00
parent 1d7b20e1d6
commit 463994df1f
3 changed files with 16 additions and 0 deletions

View File

@ -13,9 +13,15 @@ jobs:
REACT_APP_AUTH_URL: http://127.0.0.1:3000/auth
steps:
- uses: actions/checkout@v3
if: github.event_name == 'push'
with:
fetch-depth: 0
ref: ${{ github.head_ref || github.ref_name }}
- uses: actions/checkout@v3
if: github.event_name == 'pull_request_target'
with:
fetch-depth: 0
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Setup Node.js
uses: actions/setup-node@v3
with:

View File

@ -9,8 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
if: github.event_name == 'push'
with:
ref: ${{ github.head_ref || github.ref_name }}
- uses: actions/checkout@v3
if: github.event_name == 'pull_request_target'
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Setup Node.js
uses: actions/setup-node@v3
with:

View File

@ -12,8 +12,13 @@ jobs:
REACT_APP_AUTH_URL: http://127.0.0.1:3000/auth
steps:
- uses: actions/checkout@v3
if: github.event_name == 'push'
with:
ref: ${{ github.head_ref || github.ref_name }}
- uses: actions/checkout@v3
if: github.event_name == 'pull_request_target'
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Setup Node.js
uses: actions/setup-node@v3
with: