diff --git a/.github/workflows/scripts/publishNuInstallationExample.sh b/.github/workflows/scripts/publishNuInstallationExample.sh index 1b156b0951c..c3b1678e253 100755 --- a/.github/workflows/scripts/publishNuInstallationExample.sh +++ b/.github/workflows/scripts/publishNuInstallationExample.sh @@ -5,15 +5,16 @@ if [ -z "$ACCESS_TOKEN" ]; then exit 1 fi -git config --global credential.useHttpPath true +#git config --global credential.useHttpPath true rm -rf nu-installation-example-repo -git clone git@github.com:TouK/nussknacker-installation-example.git nu-installation-example-repo -#git clone https://github.com/TouK/nussknacker-installation-example.git nu-installation-example-repo +#git clone git@github.com:TouK/nussknacker-installation-example.git nu-installation-example-repo +git clone "https://$ACCESS_TOKEN@github.com/TouK/nussknacker-installation-example.git" nu-installation-example-repo # Copy the folder to the cloned repository rm -rf nu-installation-example-repo/* cp -r "examples/installation/" nu-installation-example-repo/ +git remote set-url origin "https://$ACCESS_TOKEN@github.com/TouK/nussknacker-installation-example.git" cd nu-installation-example-repo git config user.email "actions@github.com"