mirror of
				https://github.com/bartvdbraak/omnidash.git
				synced 2025-10-31 00:19:12 +00:00 
			
		
		
		
	debug: Retrieve related branch
This commit is contained in:
		
							parent
							
								
									5f951d73ed
								
							
						
					
					
						commit
						9d3bbc281f
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		
							
								
								
									
										12
									
								
								.github/workflows/seo-report.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/seo-report.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -17,7 +17,7 @@ jobs: | ||||||
|     if: github.event.deployment_status.state == 'success' |     if: github.event.deployment_status.state == 'success' | ||||||
|     environment: |     environment: | ||||||
|       name: github-pages |       name: github-pages | ||||||
|       url: https://${{ github.repository_owner }}.github.io/${{ github.repository }}/${{ github.event.repository.name }}/${{ github.head_ref }} |       url: https://${{ github.repository_owner }}.github.io/${{ github.head_ref }}/ | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - name: Check out |       - name: Check out | ||||||
|  | @ -31,6 +31,16 @@ jobs: | ||||||
|       - name: Install Dependencies |       - name: Install Dependencies | ||||||
|         run: yarn global add @unlighthouse/cli puppeteer |         run: yarn global add @unlighthouse/cli puppeteer | ||||||
| 
 | 
 | ||||||
|  |       - name: Get Deployment Source Branch Name | ||||||
|  |         id: git-branch | ||||||
|  |         run: | | ||||||
|  |            git branch -a --contains ${{ github.event.deployment.ref }} | ||||||
|  |            source_branches="$(git branch -a --contains ${{ github.event.deployment.ref }})" | ||||||
|  |            result=$(echo "$source_branches" | tail -n1 | sed 's/^[ \t]*//') | ||||||
|  |            echo "Remote source of deployment: ${result}" | ||||||
|  |            echo "Local git ref of deployment: ${result#remotes/origin/*}" | ||||||
|  |            echo "SOURCE_REF=${result#remotes/origin/*}" >> "$GITHUB_OUTPUT" | ||||||
|  | 
 | ||||||
|       - name: Build Unlighthouse report |       - name: Build Unlighthouse report | ||||||
|         run: | |         run: | | ||||||
|           unlighthouse-ci \ |           unlighthouse-ci \ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue