Fix double checkout

This commit is contained in:
Adria Navarro 2023-08-07 14:05:44 +03:00
parent b5e7755948
commit 02f28442d6
1 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ jobs:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
- name: Checkout repo only
uses: actions/checkout@v3
if: github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
- name: Use Node.js 14.x
uses: actions/setup-node@v3
@ -52,7 +52,7 @@ jobs:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
- name: Checkout repo only
uses: actions/checkout@v3
if: github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
- name: Use Node.js 14.x
uses: actions/setup-node@v3
@ -76,7 +76,7 @@ jobs:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
- name: Checkout repo only
uses: actions/checkout@v3
if: github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
- name: Use Node.js 14.x
uses: actions/setup-node@v3
@ -102,7 +102,7 @@ jobs:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
- name: Checkout repo only
uses: actions/checkout@v3
if: github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
- name: Use Node.js 14.x
uses: actions/setup-node@v3
@ -146,7 +146,7 @@ jobs:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
- name: Checkout repo only
uses: actions/checkout@v3
if: github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'Budibase/budibase'
- name: Use Node.js 14.x
uses: actions/setup-node@v3