我有以下步骤将文件复制到工件并发布工件:
- name: copy FA function arm templates
run: Copy 'Service/Project/Hosts/FA/Infrastructure/' 'upload/functions_arm_templates/FA/Infrastructure'
shell: powershell
- name: copy FB function arm templates
run: Copy 'Service/Project/Hos
我是Git的新手,需要一些帮助。在Azure管道上工作,我创建了几个PowerShell脚本,托管在Azure文件git中。当管道启动时,在Windows自托管代理上,我希望有一个PowerShell脚本来下载git中脚本的最新版本。
我试过:
E:
CD myFolder
git clone --no-checkout https://token@acme.visualstudio.com/DefaultCollection/Project/_gits/fileRepos
但是它只创建_git文件夹和一个空结构。
The fileRepos is structured like this:
我有一个应用程序,它能够调用/执行Powershell,并在执行此操作时发送命令。
不幸的是,我需要它发送的部分命令包含带引号的多行文本。
因此,我的解决方案需要将数据存储到一个变量/文件中,当应用程序发送命令参数时,可以通过powershell引用该变量/文件。
我可以将其存储为Copy.PS1
$command = 'Set-Clipboard -Value @"
Final text
Text also here
"@'
$bytes = [System.Text.Encoding]::Unicode.GetBytes($command)
$encode