Skip to content

Commit ecc14b9

Browse files
authored
Merge pull request #1814 from equalizedigital/william/no-issue/strip-v-prefix-svn-deploy-version
fix: strip leading v from release tag before using as SVN version
2 parents 5349658 + d9e4de8 commit ecc14b9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy-on-release-to-dot-org.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,17 @@ jobs:
5050
npm run dist:dotorg
5151
echo "::set-output name=zip-path::./dist/${{ github.event.repository.name }}/${{ github.event.repository.name }}.zip"
5252
53+
- name: Normalize release version for SVN tag
54+
id: normalize-version
55+
run: |
56+
TAG="${{ github.event.release.tag_name }}"
57+
echo "version=${TAG#v}" >> "$GITHUB_OUTPUT"
58+
5359
- name: WordPress plugin deploy
5460
id: deploy
5561
uses: 10up/action-wordpress-plugin-deploy@stable
5662
env:
5763
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
5864
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
5965
BUILD_DIR: ./dist/${{ github.event.repository.name }}/
60-
VERSION: ${{ github.event.release.tag_name }}
66+
VERSION: ${{ steps.normalize-version.outputs.version }}

0 commit comments

Comments
 (0)