DEV Community

Sony AK
Sony AK

Posted on

Simple GitHub Actions Demo (update README.md content if a file updated)

I just want to share quick demo about how to use GitHub Actions for fun.

The scenario is simple, I have a repo that contains test.php and README.md files. When I update the test.php (means git push happen) it will update part of content in README.md file with the content of test.php.

See the demo at https://github.com/sonyarianto/github-actions-push-and-display-it-on-readme

The workflow is on .github/workflows/update-readme.yml.

Enjoy the GitHub Actions.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more