mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-03 22:29:11 +00:00 
			
		
		
		
	Create test-missing-git-ref.yaml
This commit is contained in:
		
							parent
							
								
									cbb722410c
								
							
						
					
					
						commit
						f58ab7734d
					
				
					 1 changed files with 23 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								.github/workflows/test-missing-git-ref.yaml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/test-missing-git-ref.yaml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
name: missing-git-ref-issue
 | 
			
		||||
on:
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  open-close-reopen-pr:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Push dummy PR
 | 
			
		||||
        env:
 | 
			
		||||
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        run: |
 | 
			
		||||
          prBranch=oriy/testRefMerge
 | 
			
		||||
          git branch -d "${prBranch}" 2>/dev/null || true
 | 
			
		||||
          git checkout -b "${prBranch}"
 | 
			
		||||
          touch dummy
 | 
			
		||||
          git commit -am 'test ref merge'
 | 
			
		||||
          git push --force origin "${prBranch}"
 | 
			
		||||
          gh pr create --fill-first 
 | 
			
		||||
          
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue