ci: push, pull: debug logging
This commit is contained in:
		
							parent
							
								
									aafb6d21cf
								
							
						
					
					
						commit
						54c758bbdb
					
				
							
								
								
									
										21
									
								
								.github/workflows/pull.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/pull.yml
									
									
									
									
										vendored
									
									
								
							| @ -89,14 +89,23 @@ jobs: | |||||||
|       shell: bash |       shell: bash | ||||||
|       run: | |       run: | | ||||||
|         RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} |         RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} | ||||||
|  | 
 | ||||||
|         echo debug: BEFORE: $BEFORE |         echo debug: BEFORE: $BEFORE | ||||||
|  |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE) | ||||||
|  |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE) | ||||||
|  |         echo debug: origin/master: | ||||||
|  |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 origin/master) | ||||||
|  |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 origin/master) | ||||||
|         echo debug: GITHUB_HEAD_REF: $GITHUB_HEAD_REF |         echo debug: GITHUB_HEAD_REF: $GITHUB_HEAD_REF | ||||||
|         echo debug: RANGE: $RANGE |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF) | ||||||
|         echo debug: log BEFORE: $(git log -1 $BEFORE | head -1) |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF) | ||||||
|         echo debug: log origin/master: $(git log -1 origin/master | head -1) |         echo debug: origin/GITHUB_HEAD_REF: origin/$GITHUB_HEAD_REF | ||||||
|         echo debug: log GITHUB_HEAD_REF: $(git log -1 $GITHUB_HEAD_REF | head -1) |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF) | ||||||
|         echo debug: log origin/GITHUB_HEAD_REF: $(git log -1 origin/$GITHUB_HEAD_REF | head -1) |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF) | ||||||
|         echo debug: log RANGE: $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE) |         echo debug: RANGE (commits being checked): $RANGE | ||||||
|  |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE) | ||||||
|  |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE) | ||||||
|  | 
 | ||||||
|         if git rev-list --quiet $RANGE |         if git rev-list --quiet $RANGE | ||||||
|         then tools/commitlint $RANGE |         then tools/commitlint $RANGE | ||||||
|         else echo "could not identify commits, not checking them" |         else echo "could not identify commits, not checking them" | ||||||
|  | |||||||
							
								
								
									
										20
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							| @ -92,14 +92,22 @@ jobs: | |||||||
|       shell: bash |       shell: bash | ||||||
|       run: | |       run: | | ||||||
|         RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} |         RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} | ||||||
|  | 
 | ||||||
|         echo debug: BEFORE: $BEFORE |         echo debug: BEFORE: $BEFORE | ||||||
|  |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE) | ||||||
|  |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE) | ||||||
|  |         echo debug: origin/master: | ||||||
|  |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 origin/master) | ||||||
|  |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 origin/master) | ||||||
|         echo debug: GITHUB_HEAD_REF: $GITHUB_HEAD_REF |         echo debug: GITHUB_HEAD_REF: $GITHUB_HEAD_REF | ||||||
|         echo debug: RANGE: $RANGE |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF) | ||||||
|         echo debug: log BEFORE: $(git log -1 $BEFORE | head -1) |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF) | ||||||
|         echo debug: log origin/master: $(git log -1 origin/master | head -1) |         echo debug: origin/GITHUB_HEAD_REF: origin/$GITHUB_HEAD_REF | ||||||
|         echo debug: log GITHUB_HEAD_REF: $(git log -1 $GITHUB_HEAD_REF | head -1) |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF) | ||||||
|         echo debug: log origin/GITHUB_HEAD_REF: $(git log -1 origin/$GITHUB_HEAD_REF | head -1) |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF) | ||||||
|         echo debug: log RANGE: $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE) |         echo debug: RANGE (commits being checked): $RANGE | ||||||
|  |         echo debug:  echo $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE) | ||||||
|  |         echo debug:  $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE) | ||||||
| 
 | 
 | ||||||
|         if git rev-list --quiet $RANGE |         if git rev-list --quiet $RANGE | ||||||
|         then tools/commitlint $RANGE |         then tools/commitlint $RANGE | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user