Skip to content

Restore main.yml Actions workflow and README badge - #22

Draft
phuquoc81 with Copilot wants to merge 2 commits into
Mainfrom
copilot/main-please-work
Draft

Restore main.yml Actions workflow and README badge#22
phuquoc81 with Copilot wants to merge 2 commits into
Mainfrom
copilot/main-please-work

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 not a valid Actions definition. This updates the workflow target behind the badge so the README points to a real, branch-correct CI workflow again.

  • Workflow restoration

    • Replaced the invalid .github/workflows/main.yml contents with a minimal GitHub Actions workflow.
    • Configured the workflow to run on push, pull_request, and manual dispatch for the repository’s primary branch: Main.
    • Kept the job scoped to the repository’s existing validation surface:
      • node --check *.js
      • npm run build
  • README badge

    • Added the main.yml workflow badge snippet at the top of README.md so the documented status link resolves to the restored workflow.
  • Resulting workflow shape

    name: Main
    
    on:
      push:
        branches: [Main]
      pull_request:
        branches: [Main]
      workflow_dispatch:
    
    jobs:
      validate:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v3
          - run: node --check *.js
          - run: npm run build

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

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