Skip to content

Commit

Permalink
ci: fix some sed replacements (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Alc-Alc <alc@localhost>
  • Loading branch information
Alc-Alc and Alc-Alc committed Jun 21, 2024
1 parent b72dbe3 commit ed8934b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
env:
CURRENT_VERSION: 2.6
run: |
sed -i "s/\"title\": \"Litestar [0-9.]* has just been released!\"/\"title\": \"Litestar ${{ steps.latest_release.outputs.version }} has just been released!\"/" page/conf.py
sed -i "s|https://docs.litestar.dev/[0-9.]*/release-notes/changelog.html#[0-9.]*|https://docs.litestar.dev/latest/release-notes/changelog.html#${{ steps.latest_release.outputs.version }}|" page/conf.py
sed -Ei "s/(\"title\": \"Litestar )[[:digit:].]*( has just been released!)\"/\1${{ steps.latest_release.outputs.version }}\2/" page/conf.py
sed -Ei "s|(https://docs.litestar.dev/latest/release-notes/changelog.html#)[[:digit:].]*|\1${{ steps.latest_release.outputs.version }}|" page/conf.py
- name: Update workflow file
if: steps.latest_release.outputs.version != env.CURRENT_VERSION
run: |
sed -i "/^CURRENT_VERSION: /s/: .*/: ${{ steps.latest_release.outputs.version }}/" .github/workflows/update-toast.yml
sed -Ei "s/(CURRENT_VERSION: )[[:digit:].]+/\1${{ steps.latest_release.outputs.version }}/" .github/workflows/update-toast.yml
- name: Create pull request
if: steps.latest_release.outputs.version != env.CURRENT_VERSION
Expand All @@ -47,5 +47,5 @@ jobs:
title: Update Litestar version to ${{ steps.latest_release.outputs.version }}
body: |
A new Litestar release (${{ steps.latest_release.outputs.version }}) has been detected.
This PR updates the version in the `docs/conf.py` file and the `CURRENT_VERSION` in the workflow file.
This PR updates the version in the `page/conf.py` file and the `CURRENT_VERSION` in the workflow file.
branch: update-litestar-version
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

0 comments on commit ed8934b

Please sign in to comment.