Files
OpenHands/.github/workflows/mock-llm-e2e-comment.yml
T
dependabot[bot]andEngel Nyst b3903c2a14 ci(deps): bump the actions group across 1 directory with 7 updates (#1927)
Bumps the actions group with 7 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6` | `7` |
| [actions/setup-node](https://github.com/actions/setup-node) | `6` | `7` |
| [actions/cache](https://github.com/actions/cache) | `4` | `6` |
| [docker/login-action](https://github.com/docker/login-action) | `4` | `4.4.0` |
| [docker/build-push-action](https://github.com/docker/build-push-action) | `6` | `7` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `4` | `8` |
| [nefrob/pr-description](https://github.com/nefrob/pr-description) | `1.2.0` | `1.3.0` |



Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

Updates `actions/setup-node` from 6 to 7
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v6...v7)

Updates `actions/cache` from 4 to 6
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v6)

Updates `docker/login-action` from 4 to 4.4.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v4...v4.4.0)

Updates `docker/build-push-action` from 6 to 7
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6...v7)

Updates `actions/download-artifact` from 4 to 8
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v8)

Updates `nefrob/pr-description` from 1.2.0 to 1.3.0
- [Release notes](https://github.com/nefrob/pr-description/releases)
- [Changelog](https://github.com/nefrob/pr-description/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nefrob/pr-description/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: docker/login-action
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: docker/build-push-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: nefrob/pr-description
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Engel Nyst <engel.nyst@gmail.com>
2026-07-25 16:53:14 +00:00

60 lines
1.9 KiB
YAML

# Post Mock-LLM E2E test report as a PR comment.
#
# Triggered by `workflow_run` so it executes in the context of the base
# repository with write permissions — necessary for fork PRs where the
# `pull_request` token is read-only.
#
# Same-repo PRs already get an inline comment from the test workflow
# itself; this workflow covers the fork-PR gap. It is safe because it
# only checks out base-repository workflow code, never PR code, then downloads
# the rendered report artifact and posts it.
name: "Mock-LLM E2E: Post PR Comment"
on:
workflow_run:
workflows: ["Mock-LLM E2E Tests"]
types: [completed]
permissions:
contents: read
pull-requests: write
jobs:
post-comment:
name: Post PR comment
runs-on: ubuntu-24.04
# Only run for fork PRs — same-repo PRs are handled inline.
if: >-
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.head_repository.full_name != github.repository
steps:
- name: Check out base repository
uses: actions/checkout@v7
- name: Download PR comment payload
uses: actions/download-artifact@v8
id: download
with:
name: mock-llm-pr-comment-payload
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
continue-on-error: true
- name: Post comment
if: steps.download.outcome == 'success'
continue-on-error: true
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
PR_NUMBER=$(cat pr_number.txt)
if [ -z "$PR_NUMBER" ]; then
echo "::warning::Could not determine PR number; skipping comment."
exit 0
fi
node tests/e2e/mock-llm/scripts/upsert-pr-comment.mjs \
--issue-number "$PR_NUMBER" \
--body-file mock-llm-report.md \
--marker "<!-- agent-canvas-mock-llm-e2e-report -->" \
--legacy-title "Mock-LLM E2E Tests"