GitHub操作 对于我的.net项目,如下所示:
name: CI on: push: pull_request: branches: - '*' env: solution: '**/*.sln' buildPlatform: 'Any CPU' buildConfiguration: 'Release' jobs: ci_build: name: Build runs-on: windows-latest steps: - name: NPM Authentication uses: workflows/checkout@0 - name: Use Node.js uses: workflows/setup-node@0 - name: Nuget Command uses: workflows/checkout@master - uses: nuget/setup-nuget@v1 with: nuget-api-key: ${{ secrets.NuGetAPIKey }} - run: nuget restore MyProject.sln - name: NuGet Tool Installer run: NuGetToolInstaller@0 - name: NuGet Commad run: NuGetCommand@2 env: restoreSolution: '$(solution)' selectOrConfig: 'config' nugetConfigPath: 'Build/NuGet.config' - name: VS Build run: VSBuild@1 env: solution: '$(solution)' platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' msbuildArgs: /p:AuthenticateWithRegistry=false - name: VS Test run: VSTest@2 env: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' testSelector: 'testAssemblies' testAssemblyVer2: '**\*test*.dll!**\*IntegrationTests.dll!**\*UiTests.dll!**\*TestAdapter.dll!**\obj\**' - name: Copy Files to - $(build.artifactstagingdirectory) run: CopyFiles@2 env: content: | **\bin\MtPtoject*.zip **\bin\**\$(buildConfiguration)\*.msi targetFolder: $(build.artifactstagingdirectory) flattenFolders: true
当前运行程序版本:“2.163.1” 准备工作流目录 准备所有必需的操作 下载操作存储库“工作流/签出@0” [警告]下载操作失败' https://api.github.com/repos/workflows/checkout/zipball/0 响应状态代码不表示成功:404(未找到)。 [警告]退出29.74秒后重试。 https://api.github.com/repos/workflows/checkout/zipball/0网站 '. 错误 [警告]退出29.102秒后重试。 [错误]响应状态代码不表示成功:404(未找到)。
您指的是一个不存在的版本中不存在的动作。你已经指定 workflows/checkout 修订版 0 工作流/签出 知识库存在。
workflows/checkout
0
工作流/签出
actions/checkout ,您可能需要指定一个标记 v1 ,所以这些行看起来像 uses: actions/checkout@v1 .
actions/checkout
v1
uses: actions/checkout@v1
This repository 可能有适当工具的链接。