Skip to content

Commit

Permalink
Update versions on release (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
der-eismann committed Dec 9, 2022
1 parent 184aa73 commit 1a2afad
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ on:
types: [created]

jobs:
update_readme:
name: Update Readme
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${GITHUB_REF#refs/tags/}/" README.md
sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${GITHUB_REF#refs/tags/}/" README.md
sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${GITHUB_REF#refs/tags/}\//" README.md
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update readme for ${GITHUB_REF#refs/tags/}

release:
name: Publish binaries
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 1a2afad

Please sign in to comment.