Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed May 5, 2024
1 parent 8e20c6d commit bf0f5a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-update-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
repository: etcd-io/website
repository: ivanvc/etcd-website
- env:
RELEASE_TAG: ${{ github.release.tag_name }}
RELEASE_TAG: ${{ github.release.tag_name }}
run: |
minor="$(echo $RELEASE_TAG | cut -d. -f1-2)"
sed "content/en/docs/$minor/_index.md" s/git_version_tag:/git_version_tag:/
sed -i 's/git_version_tag:\sv\([0-9]\+\.\)\{2\}[0-9]\+/git_version_tag: '$RELEASE_TAG'/' "content/en/docs/$minor/_index.md"
git commit -m "[$minor] Update installation version to latest tag ($RELEASE_TAG)"
git push

0 comments on commit bf0f5a9

Please sign in to comment.