From 026edde33bedda90c3437b3a7b623e9890ac204f Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Mon, 1 Dec 2025 16:46:46 -0800 Subject: [PATCH] Fix update-version workflow to update TWP_VERSION constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The workflow was only updating the Version comment but not the TWP_VERSION constant, causing the local repository to show the placeholder while releases showed the actual version. Now updates both: - Version: header comment - TWP_VERSION constant This matches the release.yml workflow and ensures version consistency. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/update-version.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/update-version.yml b/.gitea/workflows/update-version.yml index 8bfecaa..aaca737 100644 --- a/.gitea/workflows/update-version.yml +++ b/.gitea/workflows/update-version.yml @@ -19,11 +19,13 @@ jobs: - name: Update version in plugin file run: | - # Replace version in main plugin file - sed -i "s/Version: .*/Version: ${{ env.TAG }}/" twilio-wp-plugin.php + # Replace version in main plugin file (both header and constant) + sed -i "s/Version: {auto_update_value_on_deploy}/Version: ${{ env.TAG }}/" twilio-wp-plugin.php + sed -i "s/TWP_VERSION', '{auto_update_value_on_deploy}/TWP_VERSION', '${{ env.TAG }}/" twilio-wp-plugin.php - # Verify change + # Verify changes grep "Version:" twilio-wp-plugin.php + grep "TWP_VERSION" twilio-wp-plugin.php - name: Commit changes run: |