का उपयोग करके निर्माण करें I AppVeyor में सफल निर्माण के बाद एक संग्रह को लेबल करने का प्रयास कर रहा हूं। मैं निम्न संसाधनों को पढ़ लिया है:AppVeyor में लेबल गिट भंडार पर्यावरण परिवर्तनीय
लेकिन मैं एक AppVeyor वातावरण चर में स्थानापन्न करने के लिए कैसे पता नहीं है।
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)
यह AppVeyor में निर्माण निम्न त्रुटि में परिणाम के लिए लॉग इन
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
यह देखते हुए कि powershell ऐड-सामग्री लाइन उदाहरण के अनुसार काम करने के लिए माना जाता है: यहाँ YAML है कि मैं का उपयोग कर रहा है आप गिट कमांड में चर को कैसे बदलना चाहते हैं?