Skip to content

[WIP] Fix simple workflows and maintenance YAML issues#11084

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-simple-workflows-error
Closed

[WIP] Fix simple workflows and maintenance YAML issues#11084
Copilot wants to merge 1 commit intomainfrom
copilot/fix-simple-workflows-error

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

Fix simple workflows and agentics-maintenance.yml for external repos

  • Understand the issue
    • Workflows generated by gh-aw fail in external repos
    • The checkout step doesn't specify repository in dev mode
    • Should checkout from githubnext/gh-aw to work in external repos
  • Fix the checkout step in compiler_yaml_helpers.go
    • Add repository: githubnext/gh-aw to dev mode checkout
  • Fix the checkout step in maintenance_workflow.go
    • Add repository: githubnext/gh-aw to dev mode checkout
  • Update tests to verify repository is specified
  • Run make agent-finish to validate all changes
  • Test the fix manually
Original prompt

This section details on the original issue you should resolve

<issue_title>Simple workflows and agentics-maintenance.yml are not working outside the GH-AW repo</issue_title>
<issue_description>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</issue_description>

Comments on the Issue (you are @copilot in this section)

@pelikhan Fixed in next release

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants