mirror of
				https://github.com/bartvdbraak/omnidash.git
				synced 2025-10-31 00:19:12 +00:00 
			
		
		
		
	debug: Retry using commit SHA
This commit is contained in:
		
							parent
							
								
									4dd7664f29
								
							
						
					
					
						commit
						7772c6367e
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		
							
								
								
									
										7
									
								
								.github/workflows/seo-report.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/seo-report.yaml
									
										
									
									
										vendored
									
									
								
							|  | @ -34,9 +34,12 @@ jobs: | ||||||
|       - name: Get Deployment Source Branch Name |       - name: Get Deployment Source Branch Name | ||||||
|         id: git-branch |         id: git-branch | ||||||
|         run: | |         run: | | ||||||
|  |           commit_sha=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||||||
|  |             "https://api.github.com/repos/${{ github.repository }}/deployments/${{ github.event.deployment.id }}" \ | ||||||
|  |             | jq -r '.sha') | ||||||
|           branch=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ |           branch=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||||||
|           "https://api.github.com/repos/${{ github.repository }}/deployments/${{ github.event.deployment.id }}" \ |             "https://api.github.com/repos/${{ github.repository }}/commits/$commit_sha" \ | ||||||
|           | jq -r '.ref' | cut -d "/" -f 3-) |             | jq -r '.ref' | sed 's/refs\/heads\///') | ||||||
|           echo "Source branch of deployment: $branch" |           echo "Source branch of deployment: $branch" | ||||||
|           echo "SOURCE_REF=$branch" >> "$GITHUB_ENV" |           echo "SOURCE_REF=$branch" >> "$GITHUB_ENV" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue