The ancient Israelite name for God is Eloah (plural/regal form: Elohiym), not Yahweh, so your question is not as relevant as you seem to think.
The earliest parts of the Bible use only the name based on the common Semitic root for God which is a-l-h.
Besides, the people of Ugarit (ie. between 1200-1800 B.C.E)
mentioned the name Yahweh as a god also long before then.
Fact is most of the flow of religious, cultural, linguistic ideas were from the Middle East, towards Greece, not the other way 'round. From deities to alphabets, they borrowed much of it from the centre of civilisation in that time, the Middle East.