mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-16 13:06:57 +08:00
Documented first output parameter.
This commit is contained in:
@@ -255,12 +255,43 @@ This job template needs no secrets.
|
|||||||
Results
|
Results
|
||||||
*******
|
*******
|
||||||
|
|
||||||
|
python_version
|
||||||
|
==============
|
||||||
|
|
||||||
|
A single string parameter representing the default Python version that should be used across multiple jobs in the same
|
||||||
|
pipeline.
|
||||||
|
|
||||||
|
Such a parameter is needed as a workaround, because GitHub Actions doesn't support proper handling of global pipeline
|
||||||
|
variables. Thus, this job is used to compute an output parameter that can be reused in many other jobs.
|
||||||
|
|
||||||
|
**Usage Example:**
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Params:
|
||||||
|
uses: pyTooling/Actions/.github/workflows/Parameters.yml@r0
|
||||||
|
with:
|
||||||
|
name: pyTooling
|
||||||
|
|
||||||
|
CodeCoverage:
|
||||||
|
uses: pyTooling/Actions/.github/workflows/CoverageCollection.yml@r0
|
||||||
|
needs:
|
||||||
|
- Params
|
||||||
|
with:
|
||||||
|
python_version: ${{ needs.Params.outputs.python_version }}
|
||||||
|
|
||||||
|
python_jobs
|
||||||
|
===========
|
||||||
|
|
||||||
|
.. todo:: Parameters:python_jobs Needs documentation.
|
||||||
|
|
||||||
|
artifact_names
|
||||||
|
==============
|
||||||
|
|
||||||
|
.. todo:: Parameters:artifact_names Needs documentation.
|
||||||
|
|
||||||
Params
|
Params
|
||||||
======
|
======
|
||||||
|
|
||||||
.. todo:: Parameters:Params Needs documentation.
|
.. attention:: ``Params`` is deprecated.
|
||||||
|
|
||||||
Jobs
|
|
||||||
====
|
|
||||||
|
|
||||||
.. todo:: Parameters:Jobs Needs documentation.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user