Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 1a2afad

Browse files
authored
Update versions on release (#891)
1 parent 184aa73 commit 1a2afad

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ on:
55
types: [created]
66

77
jobs:
8+
update_readme:
9+
name: Update Readme
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- run: |
17+
sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${GITHUB_REF#refs/tags/}/" README.md
18+
sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${GITHUB_REF#refs/tags/}/" README.md
19+
sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${GITHUB_REF#refs/tags/}\//" README.md
20+
- uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
commit_message: Update readme for ${GITHUB_REF#refs/tags/}
23+
824
release:
925
name: Publish binaries
1026
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)