|
43 | 43 | steps: |
44 | 44 | - uses: actions/checkout@v3 |
45 | 45 |
|
46 | | - - name: Generate GitHub App Token for Check Updates |
47 | | - id: generate-check-token |
48 | | - uses: actions/create-github-app-token@v1 |
49 | | - with: |
50 | | - app-id: ${{ secrets.DECO_TEST_APPROVAL_APP_ID }} |
51 | | - private-key: ${{ secrets.DECO_TEST_APPROVAL_PRIVATE_KEY }} |
52 | | - owner: databricks |
53 | | - |
54 | | - - name: Create Check Run |
55 | | - id: create-check |
56 | | - env: |
57 | | - GH_TOKEN: ${{ steps.generate-check-token.outputs.token }} |
58 | | - run: | |
59 | | - response=$(gh api -X POST \ |
60 | | - /repos/${{ github.repository }}/check-runs \ |
61 | | - -f name="Integration Tests" \ |
62 | | - -f head_sha="${{ github.event.pull_request.head.sha }}" \ |
63 | | - -f status="queued" \ |
64 | | - -f output[title]="Integration Tests" \ |
65 | | - -f output[summary]="Tests queued and will be triggered shortly...") |
66 | | -
|
67 | | - check_run_id=$(echo "$response" | jq -r .id) |
68 | | - echo "check_run_id=$check_run_id" >> $GITHUB_OUTPUT |
69 | | -
|
70 | 46 | - name: Generate GitHub App Token for Workflow Trigger |
71 | 47 | id: generate-token |
72 | 48 | uses: actions/create-github-app-token@v1 |
|
83 | 59 | gh workflow run sdk-java-isolated-pr.yml -R ${{ secrets.ORG_NAME }}/${{secrets.REPO_NAME}} \ |
84 | 60 | --ref main \ |
85 | 61 | -f pull_request_number=${{ github.event.pull_request.number }} \ |
86 | | - -f commit_sha=${{ github.event.pull_request.head.sha }} \ |
87 | | - -f check_run_id=${{ steps.create-check.outputs.check_run_id }} |
| 62 | + -f commit_sha=${{ github.event.pull_request.head.sha }} |
88 | 63 |
|
89 | 64 | # Statuses and checks apply to specific commits (by hash). |
90 | 65 | # Enforcement of required checks is done both at the PR level and the merge queue level. |
|
0 commit comments