Skip to content

Restore main.yml workflow badge support - #11

Draft
phuquoc81 with Copilot wants to merge 2 commits into
Mainfrom
copilot/update-workflow-badge
Draft

Restore main.yml workflow badge support#11
phuquoc81 with Copilot wants to merge 2 commits into
Mainfrom
copilot/update-workflow-badge

Conversation

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

The repository referenced a GitHub Actions badge for .github/workflows/main.yml, but that workflow file was no longer a valid Actions workflow. This change restores main.yml as a runnable workflow and surfaces the badge in the README.

  • Workflow repair

    • Replaced the invalid contents of .github/workflows/main.yml with a valid Main workflow.
    • Scoped the workflow to the repository’s Main branch and workflow_dispatch.
    • Kept validation minimal and repo-aligned: JavaScript syntax checks plus the existing build command.
  • README badge

    • Added the main.yml workflow badge at the top of README.md.
    • Linked the badge directly to the workflow page for quick status inspection.
  • Validation shape

    • Removed the dependency-install assumption from this workflow path.
    • The restored workflow now matches the current repository model of lightweight static-site validation.
name: Main

on:
  push:
    branches: ["Main"]
  pull_request:
    branches: ["Main"]
  workflow_dispatch:

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: node --check script.js && node --check otel-init.js && node --check otel-utils.js
      - run: npm run build
  • Screenshot
    • README badge preview

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

Co-authored-by: phuquoc81 <51638662+phuquoc81@users.noreply.github.com>
Copilot AI changed the title [WIP] Update workflow badge in README Restore main.yml workflow badge support Mar 12, 2026
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