mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Update auto-update-app-headers.yml
This commit is contained in:
		
							
								
								
									
										25
									
								
								.github/workflows/auto-update-app-headers.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/auto-update-app-headers.yml
									
									
									
									
										vendored
									
									
								
							@@ -72,28 +72,3 @@ jobs:
 | 
			
		||||
      - name: No changes detected
 | 
			
		||||
        if: steps.verify-diff.outputs.changed == 'false'
 | 
			
		||||
        run: echo "No changes to commit. Workflow completed successfully."
 | 
			
		||||
 | 
			
		||||
      # Step 8: Re-approve pull request after update
 | 
			
		||||
      - name: Re-approve pull request after update
 | 
			
		||||
        if: steps.verify-diff.outputs.changed == 'true'
 | 
			
		||||
        env:
 | 
			
		||||
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        run: |
 | 
			
		||||
          PR_NUMBER=$(gh pr list --head "pr-update-app-files" --json number --jq '.[].number')
 | 
			
		||||
 | 
			
		||||
          if [ -n "$PR_NUMBER" ]; then
 | 
			
		||||
            PR_AUTHOR=$(gh pr view "$PR_NUMBER" --json author --jq '.author.login')
 | 
			
		||||
 | 
			
		||||
            # Skip approval if the PR was created by the bot
 | 
			
		||||
            if [ "$PR_AUTHOR" != "github-actions[bot]" ]; then
 | 
			
		||||
              gh pr review "$PR_NUMBER" --approve
 | 
			
		||||
            else
 | 
			
		||||
              echo "Skipping approval: PR was created by the bot."
 | 
			
		||||
            fi
 | 
			
		||||
          else
 | 
			
		||||
            echo "No PR found for the current branch."
 | 
			
		||||
          fi
 | 
			
		||||
 | 
			
		||||
          else
 | 
			
		||||
            echo "No PR found for the current branch."
 | 
			
		||||
          fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user