mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Changed more set-output lines.
This commit is contained in:
9
.github/workflows/CoverageCollection.yml
vendored
9
.github/workflows/CoverageCollection.yml
vendored
@@ -115,8 +115,13 @@ jobs:
|
|||||||
else:
|
else:
|
||||||
print(f"File '{coverageRCFile}' not found.")
|
print(f"File '{coverageRCFile}' not found.")
|
||||||
|
|
||||||
print(f"::set-output name=coverage_report_html_directory::{htmlDirectory}")
|
# Write jobs to special file
|
||||||
print(f"::set-output name=coverage_report_xml::{xmlFile}")
|
github_output = Path(getenv("GITHUB_OUTPUT"))
|
||||||
|
print(f"GITHUB_OUTPUT: {github_output}")
|
||||||
|
with github_output.open("a+") as f:
|
||||||
|
f.write(f"coverage_report_html_directory={htmlDirectory}\n")
|
||||||
|
f.write(f"coverage_report_xml={xmlFile}\n")
|
||||||
|
|
||||||
print(f"DEBUG:\n html={htmlDirectory}\n xml={xmlFile}")
|
print(f"DEBUG:\n html={htmlDirectory}\n xml={xmlFile}")
|
||||||
|
|
||||||
- name: Collect coverage
|
- name: Collect coverage
|
||||||
|
|||||||
17
.github/workflows/Parameters.yml
vendored
17
.github/workflows/Parameters.yml
vendored
@@ -58,12 +58,12 @@ on:
|
|||||||
python_version:
|
python_version:
|
||||||
description: "Default Python version for other jobs."
|
description: "Default Python version for other jobs."
|
||||||
value: ${{ jobs.Parameters.outputs.python_version }}
|
value: ${{ jobs.Parameters.outputs.python_version }}
|
||||||
artifact_names:
|
|
||||||
description: "Pre-defined artifact names for other jobs."
|
|
||||||
value: ${{ jobs.Parameters.outputs.artifact_names }}
|
|
||||||
python_jobs:
|
python_jobs:
|
||||||
description: "List of Python versions (and system combinations) to be used in the matrix of other jobs."
|
description: "List of Python versions (and system combinations) to be used in the matrix of other jobs."
|
||||||
value: ${{ jobs.Parameters.outputs.python_jobs }}
|
value: ${{ jobs.Parameters.outputs.python_jobs }}
|
||||||
|
artifact_names:
|
||||||
|
description: "Pre-defined artifact names for other jobs."
|
||||||
|
value: ${{ jobs.Parameters.outputs.artifact_names }}
|
||||||
params:
|
params:
|
||||||
description: "Parameters to be used in other jobs."
|
description: "Parameters to be used in other jobs."
|
||||||
value: ${{ jobs.Parameters.outputs.params }}
|
value: ${{ jobs.Parameters.outputs.params }}
|
||||||
@@ -74,9 +74,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
python_version: ${{ steps.params.outputs.python_version }}
|
python_version: ${{ steps.params.outputs.python_version }}
|
||||||
|
python_jobs: ${{ steps.params.outputs.python_jobs }}
|
||||||
artifact_names: ${{ steps.params.outputs.artifact_names }}
|
artifact_names: ${{ steps.params.outputs.artifact_names }}
|
||||||
params: ${{ steps.params.outputs.params }}
|
params: ${{ steps.params.outputs.params }}
|
||||||
python_jobs: ${{ steps.params.outputs.python_jobs }}
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Generate 'params' and 'python_jobs'
|
- name: Generate 'params' and 'python_jobs'
|
||||||
@@ -247,13 +247,14 @@ jobs:
|
|||||||
print(f"GITHUB_OUTPUT: {github_output}")
|
print(f"GITHUB_OUTPUT: {github_output}")
|
||||||
with github_output.open("a+") as f:
|
with github_output.open("a+") as f:
|
||||||
f.write(f"python_version={python_version}\n")
|
f.write(f"python_version={python_version}\n")
|
||||||
|
f.write(f"python_jobs={jobs!s}\n")
|
||||||
f.write(f"artifact_names={params['artifacts']!s}\n")
|
f.write(f"artifact_names={params['artifacts']!s}\n")
|
||||||
f.write(f"params={params!s}\n")
|
f.write(f"params={params!s}\n")
|
||||||
f.write(f"python_jobs={jobs!s}\n")
|
|
||||||
|
|
||||||
- name: Verify out parameters
|
- name: Verify out parameters
|
||||||
id: verify
|
id: verify
|
||||||
run: |
|
run: |
|
||||||
echo pyver ${{ steps.params.outputs.python_version }}
|
echo "python_version: ${{ steps.params.outputs.python_version }}"
|
||||||
echo $GITHUB_OUTPUT
|
echo "python_jobs: ${{ steps.params.outputs.python_version }}"
|
||||||
cat $GITHUB_OUTPUT
|
echo "artifact_names: ${{ steps.params.outputs.artifact_names }}"
|
||||||
|
echo "params: ${{ steps.params.outputs.params }}"
|
||||||
|
|||||||
6
.github/workflows/Release.yml
vendored
6
.github/workflows/Release.yml
vendored
@@ -39,9 +39,9 @@ jobs:
|
|||||||
RELEASE_VERSION=${GIT_TAG#v}
|
RELEASE_VERSION=${GIT_TAG#v}
|
||||||
RELEASE_DATETIME="$(date --utc '+%d.%m.%Y - %H:%M:%S')"
|
RELEASE_DATETIME="$(date --utc '+%d.%m.%Y - %H:%M:%S')"
|
||||||
# write to step outputs
|
# write to step outputs
|
||||||
echo ::set-output name=gitTag::${GIT_TAG}
|
echo "gitTag=${GIT_TAG}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=version::${RELEASE_VERSION}
|
echo "version=${RELEASE_VERSION}" >> $GITHUB_OUTPUT
|
||||||
echo ::set-output name=datetime::${RELEASE_DATETIME}
|
echo "datetime=${RELEASE_DATETIME}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 📑 Create Release Page
|
- name: 📑 Create Release Page
|
||||||
id: createReleasePage
|
id: createReleasePage
|
||||||
|
|||||||
Reference in New Issue
Block a user