mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Support cross-repository pull request runs from forks.
This commit is contained in:
@@ -363,7 +363,7 @@ ref_kind
|
|||||||
|
|
||||||
:Type: string
|
:Type: string
|
||||||
:Default Value: ``'unknown'``
|
:Default Value: ``'unknown'``
|
||||||
:Possible Values: ``'branch'``, ``'tag'``, ``'unknown'``
|
:Possible Values: ``'branch'``, ``'tag'``, ``'pullrequest'``, ``'unknown'``
|
||||||
:Description: Returns ``'branch'`` if pipeline's commit is on a branch or returns ``'tag'`` if the pipeline runs for
|
:Description: Returns ``'branch'`` if pipeline's commit is on a branch or returns ``'tag'`` if the pipeline runs for
|
||||||
a tagged commit, otherwise returns ``'unknown'`` in case of an internal error.
|
a tagged commit, otherwise returns ``'unknown'`` in case of an internal error.
|
||||||
|
|
||||||
@@ -371,6 +371,8 @@ ref_kind
|
|||||||
result. |br|
|
result. |br|
|
||||||
If the kind is a tag, the tags name is available in the job's :ref:`JOBTMPL/PrepareJob/Output/tag`
|
If the kind is a tag, the tags name is available in the job's :ref:`JOBTMPL/PrepareJob/Output/tag`
|
||||||
result. |br|
|
result. |br|
|
||||||
|
If the kind is a pull-request, the pull request's id is available in the job's :ref:`JOBTMPL/PrepareJob/Output/pr_number`
|
||||||
|
result. |br|
|
||||||
Moreover, if the tag matches the :ref:`JOBTMPL/PrepareJob/Input/release_tag_pattern`, the extracted
|
Moreover, if the tag matches the :ref:`JOBTMPL/PrepareJob/Input/release_tag_pattern`, the extracted
|
||||||
version is available in the job's :ref:`JOBTMPL/PrepareJob/Output/version` result.
|
version is available in the job's :ref:`JOBTMPL/PrepareJob/Output/version` result.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user