func (c *Client) GetActionOutputs(a *Action) ([]*Output, error) {
	if !a.HasOutput || a.OutputURL == "" {
		return nil, nil
	}

	req, err := http.NewRequest("GET", a.OutputURL, nil)
	if err != nil {
		return nil, err
	}

	c.debugRequest(req)

	resp, err := c.client().Do(req)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()

	c.debugResponse(resp)

	output := []*Output{}
	if err = json.NewDecoder(resp.Body).Decode(&output); err != nil {
		return nil, err
	}

	return output, nil
}
func (c *Client) GetActionOutputs(a *Action) ([]*Output, error) {
	if !a.HasOutput || a.OutputURL == "" {
		return nil, nil
	}

	req, err := http.NewRequest("GET", a.OutputURL, nil)
	if err != nil {
		return nil, err
	}

	c.debugRequest(req)

	resp, err := c.client().Do(req)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()

	c.debugResponse(resp)

	output := []*Output{}
	if err = json.NewDecoder(resp.Body).Decode(&output); err != nil {
		return nil, err
	}

	return output, nil
}
func ( c * Client ) GetActionOutputs ( a * Action ) ( [ ] * Output , error ) { if ! a . HasOutput || a . OutputURL == " " { return nil , nil } req , err := http . NewRequest ( " " , a . OutputURL , nil ) if err != nil { return nil , err } c . debugRequest ( req ) resp , err := c . client ( ) . Do ( req ) if err != nil { return nil , err } defer resp . Body . Close ( ) c . debugResponse ( resp ) output := [ ] * Output { } if err = json . NewDecoder ( resp . Body ) . Decode ( & output ) ; err != nil { return nil , err } return output , nil }
// GetActionOutputs fetches the output for the given action
// If the action has no output, returns nil
GetActionOutputs fetches the output for the given action If the action has no output returns nil