Skip to content

Commit 4b17b12

Browse files
committed
Pass tagged version to deployment action
1 parent 28b2b81 commit 4b17b12

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release-wporg.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
# Ensure the tag has a "v" prefix.
4040
[[ "$TAG" == v* ]] || TAG="v$TAG"
4141
echo "tag=$TAG" >> $GITHUB_OUTPUT
42+
echo "version=${TAG#v}" >> $GITHUB_OUTPUT
4243
4344
- name: Download plugin zip from release
4445
env:
@@ -52,16 +53,14 @@ jobs:
5253
unzip plugin-sqlite-database-integration.zip
5354
5455
- name: Verify release metadata
55-
env:
56-
TAG: ${{ steps.resolve.outputs.tag }}
5756
run: |
58-
VERSION="${TAG#v}"
59-
bash bin/verify-release-metadata.sh plugin-sqlite-database-integration "$VERSION"
57+
bash bin/verify-release-metadata.sh plugin-sqlite-database-integration "${{ steps.resolve.outputs.version }}"
6058
6159
- name: Deploy to WordPress.org
6260
uses: 10up/action-wordpress-plugin-deploy@2.3.0
6361
env:
6462
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
6563
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
64+
VERSION: ${{ steps.resolve.outputs.version }}
6665
SLUG: sqlite-database-integration
6766
BUILD_DIR: plugin-sqlite-database-integration

0 commit comments

Comments
 (0)