Hamas has warned it will take action against anyone who breaks the truce .