Super Linter Exclude 不在 github 操作工作流上处理 MD 文件

问题描述 投票:0回答:0

我试图从我的超级 linter 中排除 md 文件,因为它每次都会被捕获但似乎无法弄清楚有人可以帮忙吗?

jobs: 
  super-linter:
    name: Lint code and merge
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Super-Linter
        uses: github/[email protected]
        with:   
          exclusions: |
            markdown: true
          files: ${{ join(github.event.push_request.changed_files, ',') }}       

        
        
        
  deploy: 
      runs-on: self-hosted   
      needs: [super-linter] 
      steps: 
        #- uses: actions/checkout@v2  #this is used for if you want to push all source code into runner       
        - name: update code base 
          working-directory: /test_pipe/www/html 
          run: sudo git pull origin master        
        - name: restart   
          working-directory: /test_pipe/www/html
          run: sudo systemctl restart nginx  

我试过使用排除和忽略但没有运气

github yaml github-actions push super-linter
© www.soinside.com 2019 - 2024. All rights reserved.