From 1fb9bf277e88c8f1c66b2812ff4e4f8eabc9bbe6 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Tue, 13 Feb 2024 09:27:34 +0000 Subject: [PATCH] fix: add step to Github Action publish workflow to update version across example files (#115) --- .github/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8b85419b..479e7809 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,6 +46,14 @@ jobs: mkdir -p "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples" mv examples/*.json "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples" + - name: Find and Replace @next with VERSION in /examples + uses: jacobtomlinson/gha-find-replace@v3 + with: + find: "@next" + replace: "v${{ steps.version_check.outputs.version }}" + include: "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples" + regex: false + - name: Checkout Dist Branch if: steps.version_check.outputs.changed == 'true' run: |