Skip to content

Restore main.yml GitHub Actions badge by replacing the broken workflow - #8

Draft
phuquoc81 with Copilot wants to merge 4 commits into
Mainfrom
copilot/update-github-actions-workflow
Draft

Restore main.yml GitHub Actions badge by replacing the broken workflow#8
phuquoc81 with Copilot wants to merge 4 commits into
Mainfrom
copilot/update-github-actions-workflow

Conversation

Copilot AI commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

The repository README references the status badge for .github/workflows/main.yml, but that workflow file was not a valid GitHub Actions definition, so the badge could not represent a real CI state. This change restores main.yml as an actual workflow and surfaces it at the top of the README.

  • Workflow restoration

    • Replaced the invalid contents of .github/workflows/main.yml with a minimal Actions workflow for this static site.
    • Configured it to run on push and pull_request against Main, plus manual dispatch.
    • Kept the job focused on the repo’s existing build entrypoint instead of introducing new CI behavior.
  • Badge wiring

    • Added the main.yml workflow badge markup to README.md so the repository front page shows workflow status directly.
  • Workflow hardening

    • Scoped GITHUB_TOKEN permissions to read-only repository contents.
name: Main

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

jobs:
  validate:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm run build
  • Screenshot
    README badge preview

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits March 12, 2026 00:17
Co-authored-by: phuquoc81 <51638662+phuquoc81@users.noreply.github.com>
Co-authored-by: phuquoc81 <51638662+phuquoc81@users.noreply.github.com>
Co-authored-by: phuquoc81 <51638662+phuquoc81@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub Actions workflow configuration Restore main.yml GitHub Actions badge by replacing the broken workflow 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