5
Sto tentando di etichettare un repository dopo una build di successo in AppVeyor. Ho letto le seguenti risorse:Label Git repository in AppVeyor build utilizzando la variabile di ambiente
Ma io non so come sostituire in una variabile d'ambiente AppVeyor. Ecco l'Yaml che sto usando:
on_success:
- git config --global credential.helper store
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
- git tag -a release/$($env:APPVEYOR_BUILD_VERSION)
- git push origin release/$($env:APPVEYOR_BUILD_VERSION)
Il risultato è il seguente errore nel AppVeyor costruire registro
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
git tag -a release/$($env:APPVEYOR_BUILD_VERSION)
fatal: 'release/$($env:APPVEYOR_BUILD_VERSION)' is not a valid tag name.
Command exited with code 128
dato che il PowerShell Add-Content linea dovrebbe funzionare come per l'esempio come dovresti sostituire le variabili nei comandi git?