tasks/libs/common/github_workflows.py
def trigger_workflow(self, workflow_name, ref, inputs=None):
        """
        Create a pipeline targeting a given reference of a project.
        ref must be a branch or a tag.
        """
        if inputs is None:
            inputs = dict()

        path = f"/repos/{self.repository}/actions/workflows/{workflow_name}/dispatches"
        data = json.dumps({"ref": ref, "inputs": inputs})
        return self.make_request(path, method="POST", data=data)

        Create a pipeline targeting a given reference of a project.
        ref must be a branch or a tag.
        
Create a pipeline targeting a given reference of a project.
ref must be a branch or a tag.
Create a pipeline targeting a given reference of a project . ref must be a branch or a tag .
def trigger_workflow(self, workflow_name, ref, inputs=None):
        if inputs is None:
            inputs = dict()
        path = f"/repos/{self.repository}/actions/workflows/{workflow_name}/dispatches"
        data = json.dumps({"ref": ref, "inputs": inputs})
        return self.make_request(path, method="POST", data=data)
def trigger_workflow ( self , workflow_name , ref , inputs = None ) : if inputs is None : inputs = dict ( ) path = f"/repos/{self.repository}/actions/workflows/{workflow_name}/dispatches" data = json . dumps ( { "ref" : ref , "inputs" : inputs } ) return self . make_request ( path , method = "POST" , data = data )
Create a pipeline targeting a given reference of a project.
Create a pipeline targeting a given reference of a project .
"""
        Create a pipeline targeting a given reference of a project.
        ref must be a branch or a tag.
        """
self
workflow_name
ref
inputs