def join_commands(cmds):
    """Joins a list of shell commands with ' && '.

    Args:
      cmds: The list of commands to join.
    Returns:
      A string with the given commands joined with ' && ', suitable for use in a
      shell script action.
    """
    return " && ".join(cmds)