Corpus of Electronic Texts Edition
The Shining Sword and the Knowledge of the Cause of the one Story about Women (Author: Unknown)

section 28

In the evening he called the goats, and they went into the giant's house. He asked if the three herds were in. They told him they were. He then began to call the goats and to let them out. When the whole of them was out, he pulled the pole that was keeping up the house, which fell on his pate, and he was killed. The three sons came home to the king, and he had a great feast there for them.