def get_relevant_actions(all_actions, goals):
    """
    Returns a subset of actions which have at least one of the goals
    in their effects
    """
    relevant = []
    for a in all_actions:
        if len(a.effects.intersection(goals)) > 0:
            relevant.append(a)
    return relevant