mirror of
				https://github.com/rasbt/LLMs-from-scratch.git
				synced 2025-11-04 03:40:21 +00:00 
			
		
		
		
	improve check-links.yml
This commit is contained in:
		
							parent
							
								
									02f8b2ee26
								
							
						
					
					
						commit
						d1a4157d71
					
				
							
								
								
									
										13
									
								
								.github/workflows/check-links.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/check-links.yml
									
									
									
									
										vendored
									
									
								
							@ -19,6 +19,17 @@ jobs:
 | 
			
		||||
      - name: Install Markdown Link Checker
 | 
			
		||||
        run: npm install -g markdown-link-check
 | 
			
		||||
 | 
			
		||||
      - name: Create config for markdown link checker
 | 
			
		||||
        run: |
 | 
			
		||||
          echo '{
 | 
			
		||||
            "projectBaseUrl":"${{ github.workspace }}",
 | 
			
		||||
            "ignorePatterns": [
 | 
			
		||||
              {
 | 
			
		||||
                "pattern": "^#"
 | 
			
		||||
              }
 | 
			
		||||
            ]
 | 
			
		||||
          }' > $GITHUB_WORKSPACE/md_checker_config.json
 | 
			
		||||
 | 
			
		||||
      - name: Find Markdown Files and Check Links
 | 
			
		||||
        run: |
 | 
			
		||||
          find . -name '*.md' -exec markdown-link-check {} \;
 | 
			
		||||
          find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -c $GITHUB_WORKSPACE/md_checker_config.json
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user