Skip to content

Commit 486427d

Browse files
authored
fix: tag open vsx release properly (#1033)
1 parent fdc2d9a commit 486427d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,20 @@ jobs:
7575
npx vsce package -o svn-scm-ovsx.vsix
7676
npx ovsx publish svn-scm-ovsx.vsix -p ${{ secrets.ovsxToken }}
7777
78+
- name: 'Get tag'
79+
if: startsWith(matrix.os, 'ubuntu') && matrix.version == 'stable' && github.ref == 'refs/heads/master' && github.repository == 'JohnstonCode/svn-scm'
80+
id: getTag
81+
uses: "WyriHaximus/github-action-get-previous-tag@master"
82+
env:
83+
GITHUB_TOKEN: "${{ secrets.githubToken }}"
84+
7885
- name: Upload Open VSX to release
7986
if: startsWith(matrix.os, 'ubuntu') && matrix.version == 'stable' && github.ref == 'refs/heads/master' && github.repository == 'JohnstonCode/svn-scm'
8087
uses: svenstaro/upload-release-action@v2
8188
with:
8289
repo_token: ${{ secrets.githubToken }}
8390
file: svn-scm-ovsx.vsix
84-
tag: ${{ github.ref }}
91+
tag: ${{ steps.getTag.outputs.tag }}
8592

8693
eslint:
8794
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)