From c430269c24b560a2f44b6f1dead30834c27fcd29 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Wed, 10 Apr 2024 01:06:44 -0500 Subject: [PATCH] fix(ci): apply reverted changes --- .github/workflows/update-toast.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-toast.yml b/.github/workflows/update-toast.yml index 6b5dfc6..5833264 100644 --- a/.github/workflows/update-toast.yml +++ b/.github/workflows/update-toast.yml @@ -28,7 +28,7 @@ jobs: - name: Update docs/conf.py if: steps.latest_release.outputs.version != env.CURRENT_VERSION env: - CURRENT_VERSION: 2.8.2 + 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!\"/" docs/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 }}|" docs/conf.py @@ -36,7 +36,7 @@ jobs: - name: Update workflow file if: steps.latest_release.outputs.version != env.CURRENT_VERSION run: | - sed -i "s/CURRENT_VERSION: ${CURRENT_VERSION}/CURRENT_VERSION: \${{ steps.latest_release.outputs.version }}/g" .github/workflows/update-toast.yml + sed -i "/^CURRENT_VERSION: /s/: .*/: ${{ steps.latest_release.outputs.version }}/" .github/workflows/update-toast.yml - name: Create pull request if: steps.latest_release.outputs.version != env.CURRENT_VERSION