mirror of
				https://github.com/1Password/onepassword-operator.git
				synced 2025-10-31 11:49:40 +00:00 
			
		
		
		
	Remove test-e2e-fork workflow
This commit is contained in:
		
							
								
								
									
										67
									
								
								.github/workflows/test-e2e-fork.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										67
									
								
								.github/workflows/test-e2e-fork.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,67 +0,0 @@ | |||||||
| name: E2E tests [fork] |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   repository_dispatch: |  | ||||||
|     types: [ ok-to-test-command ] |  | ||||||
|  |  | ||||||
| permissions: |  | ||||||
|   contents: read |  | ||||||
|   checks: write |  | ||||||
|  |  | ||||||
| concurrency: |  | ||||||
|   group: e2e-fork-${{ github.event.client_payload.pull_request.number || github.run_id }} |  | ||||||
|   cancel-in-progress: true # cancel previous job runs for the same branch |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   run-e2e-tests-fork: |  | ||||||
|     uses: ./.github/workflows/e2e-tests.yml |  | ||||||
|     if: | |  | ||||||
|       github.event_name == 'repository_dispatch' && |  | ||||||
|       github.event.client_payload.slash_command.args.named.sha != '' && |  | ||||||
|       contains( |  | ||||||
|         github.event.client_payload.pull_request.head.sha, |  | ||||||
|         github.event.client_payload.slash_command.args.named.sha |  | ||||||
|       ) |  | ||||||
|     secrets: |  | ||||||
|       OP_CONNECT_CREDENTIALS: ${{ secrets.OP_CONNECT_CREDENTIALS }} |  | ||||||
|       OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }} |  | ||||||
|       OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} |  | ||||||
|  |  | ||||||
|   update-check-status: |  | ||||||
|     needs: run-e2e-tests-fork |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     if: always() && github.event_name == 'repository_dispatch' |  | ||||||
|     steps: |  | ||||||
|       - uses: actions/github-script@v6 |  | ||||||
|         env: |  | ||||||
|           ref: ${{ github.event.client_payload.pull_request.head.sha }} |  | ||||||
|           conclusion: ${{ needs.run-e2e-tests-fork.result }} |  | ||||||
|         with: |  | ||||||
|           github-token: ${{ secrets.GITHUB_TOKEN }} |  | ||||||
|           script: | |  | ||||||
|             const { data: checks } = await github.rest.checks.listForRef({ |  | ||||||
|               ...context.repo, |  | ||||||
|               ref: process.env.ref |  | ||||||
|             }); |  | ||||||
|  |  | ||||||
|             // update the 'check-external-pr' check run |  | ||||||
|             const externalCheck = checks.check_runs.filter(c => c.name === 'check-external-pr'); |  | ||||||
|  |  | ||||||
|             const { data: externalCheckUpdateResult } = await github.rest.checks.update({ |  | ||||||
|               ...context.repo, |  | ||||||
|               check_run_id: externalCheck[0].id, |  | ||||||
|               status: 'completed', |  | ||||||
|               conclusion: 'success' |  | ||||||
|             }); |  | ||||||
|  |  | ||||||
|             // update the 'run-e2e-tests' check run from 'test-e2e.yml' workflow |  | ||||||
|             const e2eTestCheck = checks.check_runs.filter(c => c.name === 'run-e2e-tests'); |  | ||||||
|  |  | ||||||
|             const { data: e2eTestCheckResult } = await github.rest.checks.update({ |  | ||||||
|               ...context.repo, |  | ||||||
|               check_run_id: e2eTestCheck[0].id, |  | ||||||
|               status: 'completed', |  | ||||||
|               conclusion: process.env.conclusion |  | ||||||
|             }); |  | ||||||
|  |  | ||||||
|             return [externalCheckUpdateResult, e2eTestCheckResult]; |  | ||||||
		Reference in New Issue
	
	Block a user
	 Volodymyr Zotov
					Volodymyr Zotov