Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
echo "has_token=true" >> $GITHUB_OUTPUT
fi

trigger-tests:
name: Trigger Tests
create-check:
name: Create Check Run

runs-on:
group: databricks-deco-testing-runner-group
Expand All @@ -41,6 +41,8 @@ jobs:
needs: check-token
if: github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
environment: "test-trigger-is"
outputs:
check_run_id: ${{ steps.create-check.outputs.check_run_id }}

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down Expand Up @@ -69,6 +71,20 @@ jobs:
check_run_id=$(echo "$response" | jq -r .id)
echo "check_run_id=$check_run_id" >> $GITHUB_OUTPUT

trigger-tests:
name: Trigger Tests

runs-on:
group: databricks-release-runner-group-emu-access
labels: linux-ubuntu-latest-emu-access

needs: [check-token, create-check]
if: github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
environment: "test-trigger-is"

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Generate GitHub App Token for Workflow Trigger
id: generate-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
Expand All @@ -86,7 +102,7 @@ jobs:
--ref main \
-f pull_request_number=${{ github.event.pull_request.number }} \
-f commit_sha=${{ github.event.pull_request.head.sha }} \
-f check_run_id=${{ steps.create-check.outputs.check_run_id }}
-f check_run_id=${{ needs.create-check.outputs.check_run_id }}


# The hash for the merge queue may not be the same as the hash for the PR.
Expand Down
Loading