Skip to content

Commit

Permalink
chore(ci): update test suite run workflow dispatch with useful info (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon authored Oct 4, 2024
1 parent 4c64896 commit bbc335d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,18 @@ jobs:
with:
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
script: |
const prUrl = context.payload.pull_request ? context.payload.pull_request.html_url : '';
const commitUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${context.sha}`;
await github.rest.actions.createWorkflowDispatch({
owner: 'cubedevinc',
repo: 'sql-api-test-suite',
workflow_id: 'test_and_run_test_suites.yml',
ref: 'main',
inputs: {
'cube-image': 'cubejs/cube:dev'
'cube-image': 'cubejs/cube:dev',
'source-repo': context.repo.repo,
'source-pr-url': prUrl,
'source-commit-url': commitUrl
}
})
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,18 @@ jobs:
with:
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
script: |
const prUrl = context.payload.pull_request ? context.payload.pull_request.html_url : '';
const commitUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${context.sha}`;
await github.rest.actions.createWorkflowDispatch({
owner: 'cubedevinc',
repo: 'sql-api-test-suite',
workflow_id: 'test_and_run_test_suites.yml',
ref: 'main',
inputs: {
'cube-image': 'cubejs/cube:latest'
'cube-image': 'cubejs/cube:latest',
'source-repo': context.repo.repo,
'source-pr-url': prUrl,
'source-commit-url': commitUrl
}
})

0 comments on commit bbc335d

Please sign in to comment.