Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion .github/workflows/dependency-wheel-promotion.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Dependency Wheel Promotion
run-name: "Promote wheels for PR #${{ inputs.pr_number }} (${{ github.actor }})"

on:
workflow_dispatch:
Expand Down Expand Up @@ -70,17 +71,19 @@ jobs:
state: 'success',
context: 'dependency-wheel-promotion',
description: 'Wheels promoted to stable storage.',
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
});

- name: Post success comment
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const runUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{ inputs.pr_number }},
body: `Wheels promoted to stable storage for commit ${{ inputs.head_sha }} by @${context.actor}.`,
body: `Wheels promoted to stable storage for commit ${{ inputs.head_sha }} by @${context.actor}. [Workflow run](${runUrl}).`,
});

- name: Set dependency-wheel-promotion status to error
Expand All @@ -95,4 +98,5 @@ jobs:
state: 'error',
context: 'dependency-wheel-promotion',
description: 'Wheel promotion failed. Check the Actions tab for details.',
target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
});
1 change: 1 addition & 0 deletions ddev/changelog.d/23563.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`ddev dep promote` now prints a link to the dependency-wheel-promotion workflow's recent runs page after dispatching, so users can jump straight to their queued run.
6 changes: 5 additions & 1 deletion ddev/src/ddev/cli/dep/promote.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ def promote(app: Application, pr_url: str):
inputs={'pr_number': str(pr_number), 'head_sha': head_sha},
)

app.display_success(f'Promote workflow dispatched for PR #{pr_number}. Check the Actions tab for progress.')
runs_url = (
f'https://github.com/{app.github.repo_id}/actions/workflows/{PROMOTE_WORKFLOW}?query=event%3Aworkflow_dispatch'
)
app.display_success(f'Promote workflow dispatched for PR #{pr_number}.')
app.display_info(f'Recent runs: {runs_url}')
Loading