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