I\'m struggling to prevent overwriting existing artifact by doing some check before publish, using the script here https://gist.github.com/mosamman/eaa92795b300225c6e499c0fb