Skip to content

Simple workflows and agentics-maintenance.yml are not working outside the GH-AW repo #11079

@dsyme

Description

@dsyme

This workflow https://github.com/githubnext/gh-aw-test/blob/main/.github/workflows/test-claude-create-issue.md?plain=1 created this:

which failed because downloading the setup action failed for workflows outside the GH-AW repo

Error: Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/gh-aw-test/gh-aw-test/actions/setup'. Did you forget to run actions/checkout before running your local action?

The generated lock for the activation job is here, note it's trying to check out the actions folder which exists in the gh-aw repo not this one.

jobs:
  activation:
    runs-on: ubuntu-slim
    permissions:
      contents: read
    outputs:
      comment_id: ""
      comment_repo: ""
    steps:
      - name: Checkout actions folder
        uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
        with:
          sparse-checkout: |
            actions
          persist-credentials: false
      - name: Setup Scripts
        uses: ./actions/setup
        with:
          destination: /opt/gh-aw/actions
      - name: Check workflow file timestamps
        uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
        env:
          GH_AW_WORKFLOW_FILE: "test-claude-create-issue.lock.yml"
        with:
          script: |
            const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
            setupGlobals(core, github, context, exec, io);
            const { main } = require('/opt/gh-aw/actions/check_workflow_timestamp_api.cjs');
            await main();

This is likely a similar problem to agentics-maintenance.yml not working outside the repo

A failing run for agentics-maintenance.yml is here: https://github.com/githubnext/gh-aw-test/actions/runs/21216633905

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions