Skip to content

Commit

Permalink
👷 add update readme workflow (#34)
Browse files Browse the repository at this point in the history
* 👷 add update readme workflow

* 🎨 add missing label

* 👷 simplify replacement
  • Loading branch information
flaxel authored Jun 10, 2022
1 parent ba7f024 commit 6998908
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update Readme Versions

on:
release:
types: [published]

jobs:
update_readme:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Find and Replace old versions
run: |
sed -i -E 's/(v[0-9]+.[0-9]+.[0-9]+)/${{ github.ref_name }}/g' README.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: ":memo: Update Readme Versions"
body: "all versions in the readme file are bumped"
commit-message: ":memo: update readme versions"
base: main
labels: |
documentation
patch
branch: update-readme
add-paths: |
README.md

0 comments on commit 6998908

Please sign in to comment.