mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:49:01 +08:00
Fixes external PR version
Differentiate between internal actions and those of PR's This should fix the failing unit tests on forked PR
This commit is contained in:
parent
fa78996bab
commit
2385b00af3
13
.github/workflows/conan-recipe-version.yml
vendored
13
.github/workflows/conan-recipe-version.yml
vendored
@ -53,9 +53,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
if: ${{ ! contains(github.event, 'pull_request') }}
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- name: Checkout repo PR
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
if: ${{ contains(github.event, 'pull_request') }}
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
|
||||||
- name: Setup Python and pip
|
- name: Setup Python and pip
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@ -106,7 +115,7 @@ jobs:
|
|||||||
else:
|
else:
|
||||||
channel = repo.active_branch.name.split("_")[0].replace("-", "_").lower()
|
channel = repo.active_branch.name.split("_")[0].replace("-", "_").lower()
|
||||||
|
|
||||||
if event_name == "pull_request":
|
if "pull_request" in event_name:
|
||||||
channel = f"pr_{issue_number}"
|
channel = f"pr_{issue_number}"
|
||||||
|
|
||||||
# %% Get the actual version
|
# %% Get the actual version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user