Skip to content

Commit

Permalink
Fixed Actions task to update README version
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst committed Feb 16, 2024
1 parent 98f4d38 commit 001ba3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ jobs:

- name: Update version
run: |
# Replace version in readme.md
# Replace version in README.md
LAST_VERSION=$(git describe --tag --abbrev=0)
LAST_MINOR_VERSION=${LAST_VERSION%.*}
NEW_VERSION=${{ needs.check-new-version.outputs.new_version }}
NEW_MINOR_VERSION=${NEW_VERSION%.*}
sed -i s/${LAST_VERSION}/${NEW_VERSION}/g readme.md
sed -i s/${LAST_MINOR_VERSION}/${NEW_MINOR_VERSION}/g readme.md
sed -i s/${LAST_VERSION}/${NEW_VERSION}/g README.md
sed -i s/${LAST_MINOR_VERSION}/${NEW_MINOR_VERSION}/g README.md
# Replace version in Dockerfiles
LAST_VERSION=${LAST_VERSION%-*}
Expand Down

0 comments on commit 001ba3d

Please sign in to comment.