mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Check if artifacts have no basename (prefix).
This commit is contained in:
4
.github/workflows/Parameters.yml
vendored
4
.github/workflows/Parameters.yml
vendored
@@ -156,6 +156,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
from os import getenv
|
from os import getenv
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from sys import exit
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
|
|
||||||
python_version = "${{ inputs.python_version }}".strip()
|
python_version = "${{ inputs.python_version }}".strip()
|
||||||
@@ -174,6 +175,9 @@ jobs:
|
|||||||
package_directory = f"{package_namespace}/{package_name}"
|
package_directory = f"{package_namespace}/{package_name}"
|
||||||
|
|
||||||
artifact_basename = package_fullname if name == "" else name
|
artifact_basename = package_fullname if name == "" else name
|
||||||
|
if artifact_basename == "" or artifact_basename == ".":
|
||||||
|
print("::error title=Parameter::artifact_basename is empty.")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
print("Variables:")
|
print("Variables:")
|
||||||
print(f" python_version: {python_version}")
|
print(f" python_version: {python_version}")
|
||||||
|
|||||||
Reference in New Issue
Block a user