0

我正在尝试更新运行我公司某些站点的一些非生产版本的本地服务器,以便在主存储库合并拉取请求时进行更新。git pul ...但是,当动作触及线时,动作就会停止。日志不提供任何信息,该过程似乎停止了。我可以在命令提示符下运行相同的命令。任何建议表示赞赏。

主要的.yml

name: CI
    
    on:
       
      push:
        branches: [ master ]
    
       
      workflow_dispatch:
    
     
    jobs:
       
      deployment:
         
        runs-on: self-hosted
    
         
        steps:
           
          - uses: actions/checkout@v2
    
           
          - name: Test
            shell: cmd
            run: actions.cmd

动作.cmd

cd path\to\stuff
git pull remoteName master

更新,遇到了一些奇怪的缓存问题,但能够清理一下并收到一些错误消息:

nothing to commit, working tree clean
fatal: 'github' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
success
Error: Process completed with exit code 1.

github 是远程的名称。同样,我可以正常运行这些脚本,但也许工作流程需要一些额外的身份验证?

4

0 回答 0