diff --git a/.github/workflows/dependency-wheel-promotion.yaml b/.github/workflows/dependency-wheel-promotion.yaml index 9e2ec7fe134b1..5e26cb45bef8a 100644 --- a/.github/workflows/dependency-wheel-promotion.yaml +++ b/.github/workflows/dependency-wheel-promotion.yaml @@ -1,4 +1,5 @@ name: Dependency Wheel Promotion +run-name: "Promote wheels for PR #${{ inputs.pr_number }} (${{ github.actor }})" on: workflow_dispatch: @@ -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 @@ -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}`, }); diff --git a/ddev/changelog.d/23563.added b/ddev/changelog.d/23563.added new file mode 100644 index 0000000000000..0d9ffb04691c1 --- /dev/null +++ b/ddev/changelog.d/23563.added @@ -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. diff --git a/ddev/src/ddev/cli/dep/promote.py b/ddev/src/ddev/cli/dep/promote.py index 1cb5751409d8c..d298e7bbe1c23 100644 --- a/ddev/src/ddev/cli/dep/promote.py +++ b/ddev/src/ddev/cli/dep/promote.py @@ -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}')