Skip to content

Fix reports cleanup jobs using local actions without repository checkout #154

@coisa

Description

@coisa

Summary

The packaged reports.yml workflow fails in preview-cleanup jobs after the recent extraction of GitHub Pages helpers into local actions under .github/actions/github-pages/.

Failure

Cleanup Pull Request Preview fails with:

Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/dev-tools/dev-tools/.github/actions/github-pages/remove-preview'. Did you forget to run actions/checkout before running your local action?

Root Cause

The affected cleanup jobs checkout only the gh-pages branch into path: gh-pages, but they do not checkout the repository workspace containing .github/actions/github-pages/* before invoking those local actions.

That means the action path does not exist in the runner workspace even though the workflow itself is valid.

Scope

  • cleanup_preview
  • cleanup_orphaned_previews
  • verify whether any other reports/wiki/board job invokes local actions without first checking out the repository root

Expected Fix

  • ensure jobs that invoke local actions have a repository-root checkout available in the workspace
  • keep the gh-pages checkout used for preview cleanup logic
  • add focused validation so this regression is less likely to recur

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions