Skip to content

Commit 6998908

Browse files
authored
👷 add update readme workflow (#34)
* 👷 add update readme workflow * 🎨 add missing label * 👷 simplify replacement
1 parent ba7f024 commit 6998908

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/versions.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update Readme Versions
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
update_readme:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout the source code
12+
uses: actions/checkout@v3
13+
- name: Find and Replace old versions
14+
run: |
15+
sed -i -E 's/(v[0-9]+.[0-9]+.[0-9]+)/${{ github.ref_name }}/g' README.md
16+
- name: Create Pull Request
17+
uses: peter-evans/create-pull-request@v4
18+
with:
19+
title: ":memo: Update Readme Versions"
20+
body: "all versions in the readme file are bumped"
21+
commit-message: ":memo: update readme versions"
22+
base: main
23+
labels: |
24+
documentation
25+
patch
26+
branch: update-readme
27+
add-paths: |
28+
README.md

0 commit comments

Comments
 (0)