Skip to content

fix: remove .git from exclude_assets in deploy-pages workflow#544

Merged
MichaelCade merged 2 commits into
mainfrom
copilot/fix-deploy-job-failure
Jun 24, 2026
Merged

fix: remove .git from exclude_assets in deploy-pages workflow#544
MichaelCade merged 2 commits into
mainfrom
copilot/fix-deploy-job-failure

Conversation

Copilot AI commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Blog Post Submission

Summary

The deploy job was failing with fatal: not a git repository because .git was listed in exclude_assets. The peaceiris/actions-gh-pages action already strips the workspace .git before copying; listing it in exclude_assets caused the action to also delete the cloned gh-pages branch's .git from the temp deployment dir, destroying the repo it needs to commit and push.

Fix: Remove .git from exclude_assets:

# Before
exclude_assets: '.github,.git,template_repository'

# After
exclude_assets: '.github,template_repository'

Checklist

  • I added my post under blog/posts/ with filename format YYYY-MM-DD-short-title.md
  • I used the metadata schema from blog/_template.md (title, author, date, tags, summary)
  • My post is original and relevant to the 90DaysOfDevOps community topics
  • I verified local markdown links and image paths
  • I have read and followed CONTRIBUTING.md

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job deploy fix: remove .git from exclude_assets in deploy-pages workflow Jun 24, 2026
Copilot AI requested a review from MichaelCade June 24, 2026 14:45
@MichaelCade MichaelCade marked this pull request as ready for review June 24, 2026 14:45
@MichaelCade MichaelCade merged commit e3e3af5 into main Jun 24, 2026
1 check passed
@github-actions

Copy link
Copy Markdown
Contributor

Thank you @Copilot for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions :)

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