Skip to content

Conversation

Copy link

Copilot AI commented Nov 7, 2025

GitHub Actions was not recognizing the workflow file due to YAML parser ambiguity with the on keyword.

Changes

  • Quote on: as 'on': to prevent YAML boolean interpretation
  • Add trailing newline per POSIX text file standard

The keyword on is a reserved YAML boolean (like yes, no, true, false). Unquoted, it causes parser ambiguity:

# Before - ambiguous
on:
  workflow_dispatch:

# After - explicit string key
'on':
  workflow_dispatch:
Original prompt

fix why workflow not recognized on action


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

Co-authored-by: Edhic1 <106634745+Edhic1@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix workflow not recognized on action Fix workflow YAML parsing by quoting reserved keyword Nov 7, 2025
Copilot AI requested a review from Edhic1 November 7, 2025 22:57
Copilot finished work on behalf of Edhic1 November 7, 2025 22:57
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.

2 participants