Rewrite images path to obsolute in wiki repo
This commit is contained in:
		
							parent
							
								
									0727e1560a
								
							
						
					
					
						commit
						748aa6c9bb
					
				
							
								
								
									
										6
									
								
								.github/deploy_wiki.sh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/deploy_wiki.sh
									
									
									
									
										vendored
									
									
								
							@ -63,6 +63,12 @@ if [ ! -r "$tmp_dir/Home.md" ]; then
 | 
				
			|||||||
    rsync -q -a "$GITHUB_WORKSPACE/README.md" "$tmp_dir/Home.md"
 | 
					    rsync -q -a "$GITHUB_WORKSPACE/README.md" "$tmp_dir/Home.md"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					debug "Rewriting images path to absolute"
 | 
				
			||||||
 | 
					(
 | 
				
			||||||
 | 
					    cd "$tmp_dir" || exit 1
 | 
				
			||||||
 | 
					    find . -type f -exec sed -Ei 's@([ (])([^( ]+)(\/wiki_static\/.+?\.(png|jpe?g|svg)[ \)])@\1https://github.com/Flipper-Zero/flipperzero-firmware-community/raw/master\3@' {} \;
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
debug "Committing and pushing changes"
 | 
					debug "Committing and pushing changes"
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
    cd "$tmp_dir" || exit 1
 | 
					    cd "$tmp_dir" || exit 1
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/publish_wiki.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/publish_wiki.yml
									
									
									
									
										vendored
									
									
								
							@ -4,6 +4,8 @@ name: Publish the wiki
 | 
				
			|||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    branches: [ master ]
 | 
					    branches: [ master ]
 | 
				
			||||||
 | 
					    paths:
 | 
				
			||||||
 | 
					    - "wiki"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user