ci: use label ready
This commit is contained in:
		
							parent
							
								
									d8b403f2aa
								
							
						
					
					
						commit
						e1f0b379db
					
				
							
								
								
									
										1
									
								
								.github/workflows/auto-merge.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/auto-merge.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -10,6 +10,7 @@ on:
 | 
				
			||||||
      - ready_for_review
 | 
					      - ready_for_review
 | 
				
			||||||
      - reopened
 | 
					      - reopened
 | 
				
			||||||
      - unlocked
 | 
					      - unlocked
 | 
				
			||||||
 | 
					    branches: ["renovate/*"]
 | 
				
			||||||
  pull_request_review:
 | 
					  pull_request_review:
 | 
				
			||||||
    types:
 | 
					    types:
 | 
				
			||||||
      - submitted
 | 
					      - submitted
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
name: Tipi CI
 | 
					name: Tipi CI
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  pull_request:
 | 
					  pull_request:
 | 
				
			||||||
    types: [opened, synchronize, reopened, ready_for_review]
 | 
					    types: [opened, synchronize, reopened, ready_for_review, labeled]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  ci:
 | 
					  ci:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										16
									
								
								.github/workflows/renovate-app-version.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/renovate-app-version.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,7 +1,8 @@
 | 
				
			||||||
name: Update app version in Renovate Branches
 | 
					name: Update app version in Renovate Branches
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    types: [opened, synchronize, reopened, ready_for_review]
 | 
				
			||||||
    branches: ["renovate/*"]
 | 
					    branches: ["renovate/*"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
| 
						 | 
					@ -37,3 +38,16 @@ jobs:
 | 
				
			||||||
      - name: Commit & Push Changes
 | 
					      - name: Commit & Push Changes
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          git add "apps/*/config.json" && git commit --amend --no-edit --no-verify && git push --force-with-lease || true
 | 
					          git add "apps/*/config.json" && git commit --amend --no-edit --no-verify && git push --force-with-lease || true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Label this PR as "ready"
 | 
				
			||||||
 | 
					        if: github.event_name == 'pull_request'
 | 
				
			||||||
 | 
					        uses: actions/github-script@v4
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          github-token: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					          script: |
 | 
				
			||||||
 | 
					            github.issues.addLabels({
 | 
				
			||||||
 | 
					              issue_number: context.issue.number,
 | 
				
			||||||
 | 
					              owner: context.repo.owner,
 | 
				
			||||||
 | 
					              repo: context.repo.repo,
 | 
				
			||||||
 | 
					              labels: ["ready"]
 | 
				
			||||||
 | 
					            })
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user