Skip to content

Commit

Permalink
Merge pull request #107 from svenfuchs/automation/generate-readme
Browse files Browse the repository at this point in the history
Update workflow to generate & commit README.md if necessary
  • Loading branch information
PikachuEXE authored Mar 15, 2023
2 parents 53f63e4 + 4189fe8 commit 5890abf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
name: Ensure readme.md is up to date
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -23,6 +27,10 @@ jobs:
bundler-cache: true
- name: generate readme
run: script/generate_readme
- name: Commit updated README.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: 'README.md'
- name: check that new readme is identical to the old
run: |
if [ -z "$(git status --porcelain README.md)" ]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gem release [![Build Status](https://secure.travis-ci.org/svenfuchs/gem-release.svg)](http://travis-ci.org/svenfuchs/gem-release)
# gem release

This gem plugin aims at making gem development easier by automating repetitive work based on conventions, configuration, and templates.

Expand All @@ -8,10 +8,10 @@ It adds the commands `bootstrap`, `gemspec`, `bump`, `tag` and a `release` to th
| ---------------------- | ------------ |
| Gem name | gem-release |
| License | [MIT](https://github.com/svenfuchs/gem-release/blob/master/LICENSE.md) |
| Version | [![Gem Version](https://img.shields.io/gem/v/gem-release.svg?style=flat-square)](http://badge.fury.io/rb/gem-release) |
| Version | [![Gem Version](https://img.shields.io/gem/v/gem-release.svg?style=flat-square)](https://badge.fury.io/rb/gem-release) |
| Continuous integration | [![GitHub Build Status](https://img.shields.io/github/actions/workflow/status/svenfuchs/gem-release/tests.yaml?branch=master&style=flat-square)](https://github.com/svenfuchs/gem-release/actions/workflows/tests.yaml) |
| Test coverage | [![Coverage Status](https://img.shields.io/coveralls/svenfuchs/gem-release.svg?style=flat-square)](https://coveralls.io/r/svenfuchs/gem-release) |
| Documentation | [Documentation](http://rdoc.info/github/svenfuchs/gem-release/frames) |
| Documentation | [Documentation](https://www.rubydoc.info/gems/gem-release) |
| Credits | [Contributors](https://github.com/svenfuchs/gem-release/graphs/contributors) |

# Table of contents
Expand Down
6 changes: 3 additions & 3 deletions README.md.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gem release [![Build Status](https://secure.travis-ci.org/svenfuchs/gem-release.svg)](http://travis-ci.org/svenfuchs/gem-release)
# gem release

This gem plugin aims at making gem development easier by automating repetitive work based on conventions, configuration, and templates.

Expand All @@ -8,10 +8,10 @@ It adds the commands `bootstrap`, `gemspec`, `bump`, `tag` and a `release` to th
| ---------------------- | ------------ |
| Gem name | gem-release |
| License | [MIT](https://github.com/svenfuchs/gem-release/blob/master/LICENSE.md) |
| Version | [![Gem Version](https://img.shields.io/gem/v/gem-release.svg?style=flat-square)](http://badge.fury.io/rb/gem-release) |
| Version | [![Gem Version](https://img.shields.io/gem/v/gem-release.svg?style=flat-square)](https://badge.fury.io/rb/gem-release) |
| Continuous integration | [![GitHub Build Status](https://img.shields.io/github/actions/workflow/status/svenfuchs/gem-release/tests.yaml?branch=master&style=flat-square)](https://github.com/svenfuchs/gem-release/actions/workflows/tests.yaml) |
| Test coverage | [![Coverage Status](https://img.shields.io/coveralls/svenfuchs/gem-release.svg?style=flat-square)](https://coveralls.io/r/svenfuchs/gem-release) |
| Documentation | [Documentation](http://rdoc.info/github/svenfuchs/gem-release/frames) |
| Documentation | [Documentation](https://www.rubydoc.info/gems/gem-release) |
| Credits | [Contributors](https://github.com/svenfuchs/gem-release/graphs/contributors) |

# Table of contents
Expand Down

0 comments on commit 5890abf

Please sign in to comment.