11name : Integration Tests
22
33on :
4+ workflow_dispatch :
45
5- pull_request :
6- types : [opened, synchronize]
7-
8- merge_group :
9-
6+ # Disable because of https://github.com/databricks/databricks-sdk-py/issues/848.
7+ #
8+ # pull_request:
9+ # types: [opened, synchronize]
10+ #
11+ # merge_group:
1012
1113jobs :
1214 check-token :
@@ -26,14 +28,14 @@ jobs:
2628 echo "DECO_WORKFLOW_TRIGGER_APP_ID is set. User has access to secrets."
2729 echo "::set-output name=has_token::true"
2830 fi
29-
31+
3032 trigger-tests :
3133 name : Trigger Tests
3234 runs-on : ubuntu-latest
3335 needs : check-token
3436 if : github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
3537 environment : " test-trigger-is"
36-
38+
3739 steps :
3840 - uses : actions/checkout@v3
3941
@@ -45,19 +47,19 @@ jobs:
4547 private-key : ${{ secrets.DECO_WORKFLOW_TRIGGER_PRIVATE_KEY }}
4648 owner : ${{ secrets.ORG_NAME }}
4749 repositories : ${{secrets.REPO_NAME}}
48-
50+
4951 - name : Trigger Workflow in Another Repo
5052 env :
5153 GH_TOKEN : ${{ steps.generate-token.outputs.token }}
5254 run : |
5355 gh workflow run sdk-py-isolated-pr.yml -R ${{ secrets.ORG_NAME }}/${{secrets.REPO_NAME}} \
5456 --ref main \
5557 -f pull_request_number=${{ github.event.pull_request.number }} \
56- -f commit_sha=${{ github.event.pull_request.head.sha }}
58+ -f commit_sha=${{ github.event.pull_request.head.sha }}
5759
58- # Statuses and checks apply to specific commits (by hash).
60+ # Statuses and checks apply to specific commits (by hash).
5961 # Enforcement of required checks is done both at the PR level and the merge queue level.
60- # In case of multiple commits in a single PR, the hash of the squashed commit
62+ # In case of multiple commits in a single PR, the hash of the squashed commit
6163 # will not match the one for the latest (approved) commit in the PR.
6264 # We auto approve the check for the merge queue for two reasons:
6365 # * Queue times out due to duration of tests.
7577 -H "X-GitHub-Api-Version: 2022-11-28" \
7678 /repos/${{ github.repository }}/statuses/${{ github.sha }} \
7779 -f 'state=success' \
78- -f 'context=Integration Tests Check'
80+ -f 'context=Integration Tests Check'
0 commit comments