mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 09:15:26 +01:00 
			
		
		
		
	 9de3fc8667
			
		
	
	9de3fc8667
	
	
	
		
			
			This reworks the container to be usable with the Gitea act-runner and connect using TLS. The directory structure is prepared so that a config.yml can be echoed into the container for authentication. Co-authored-by: Pysen X <pysen@svartavillan.se> Co-authored-by: Lunny Xiao <lunny@noreply.gitea.com> Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com> Reviewed-on: https://gitea.com/gitea/tea/pulls/682 Reviewed-by: Lunny Xiao <lunny@noreply.gitea.com> Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com> Co-authored-by: pysen <pysen@noreply.gitea.com> Co-committed-by: pysen <pysen@noreply.gitea.com>
		
			
				
	
	
	
		
			1.0 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.0 KiB
		
	
	
	
	
	
	
	
Gitea actions workflows
Merge Pull request on approval
---
name: Pull request
on:
  pull_request_review:
    types: [submitted, dismissed]
jobs:
  approved:
    name: Approved
    if: gitea.event.review.type == 'pull_request_review_approved'
    container:
      image: docker.io/pysen/tea:latest
    runs-on: ubuntu-latest
    steps:
    - name: Configure Tea
      env:
        # This is a tea config.yml with (service) account token
        TEA_CREDENTIALS: ${{ secrets.TEA_CREDENTIALS }}
      run: |
        echo "$TEA_CREDENTIALS" > $HOME/.config/tea/config.yml
    - name: Rebase then fast-forward merge Git
      run: |
        tea pr merge --repo ${{ gitea.event.repository.full_name }} --style rebase ${{ gitea.event.pull_request.number }}
  dismissed:
    name: Dismissed
    if: gitea.event.review.type == 'pull_request_review_rejected'
    runs-on: ubuntu-latest
    steps:
    - run: |
        tea pr reject --repo ${{ gitea.event.repository.full_name }} ${{ gitea.event.pull_request.number }} "Dismissed"