mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 13:09:06 +08:00
Use different checkout scheme based on forked repo
This commit is contained in:
parent
df0179ef58
commit
76466b776a
9
.github/workflows/conan-recipe-version.yml
vendored
9
.github/workflows/conan-recipe-version.yml
vendored
@ -12,11 +12,6 @@ on:
|
|||||||
default: ""
|
default: ""
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
is_external_pr:
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
type: boolean
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
recipe_id_full:
|
recipe_id_full:
|
||||||
description: "The full Conan recipe id: <name>/<version>@<user>/<channel>"
|
description: "The full Conan recipe id: <name>/<version>@<user>/<channel>"
|
||||||
@ -58,14 +53,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
if: ${{ ! inputs.is_external_pr }}
|
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: Checkout repo PR
|
- name: Checkout repo PR
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
if: ${{ inputs.is_external_pr }}
|
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user