Skip to content

Commit ed1a61d

Browse files
committed
test workflow for purposely error
1 parent 3eee6a6 commit ed1a61d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
os: [ubuntu-latest, windows-latest, macOS-latest]
2626
steps:
2727
- uses: actions/checkout@v2
28-
with:
29-
ref: master
3028
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3129
- name: Set an output
3230
id: set-version
@@ -40,7 +38,7 @@ jobs:
4038
echo ::set-output name=changelog::$CHANGELOG
4139
git tag -l | cat
4240
[ $GITHUB_EVENT_NAME == 'push' ] && VERSION+=-beta && VERSION+=.$(($(git tag -l "v$VERSION.*" | sort -nt. -k4 2>/dev/null | tail -1 | cut -d. -f4)+1))
43-
[ $GITHUB_EVENT_NAME == 'pull_request' ] && VERSION+=-dev
41+
[ $GITHUB_EVENT_NAME == 'pull_request' ] && VERSION+=-dev.${{ github.event.pull_request.number }}
4442
echo ::set-output name=version::$VERSION
4543
NAME=$(jq -r '.name' package.json)-$VERSION
4644
echo ::set-output name=name::$NAME
@@ -65,7 +63,7 @@ jobs:
6563
- name: Build package
6664
if: runner.os == 'Linux'
6765
run: |
68-
./node_modules/.bin/vsce package -o ./dist/package.vsix
66+
./node_modules/.bin/vsce package -o ./dist/${{ steps.set-version.outputs.name }}.vsix
6967
- uses: actions/upload-artifact@v2
7068
if: runner.os == 'Linux'
7169
with:
@@ -108,7 +106,7 @@ jobs:
108106
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109107
with:
110108
upload_url: ${{ steps.create_release.outputs.upload_url }}
111-
asset_path: ./dist/package.vsix
109+
asset_path: ./dist/${{ steps.set-version.outputs.name }}.vsix
112110
asset_name: ${{ steps.set-version.outputs.name }}.vsix
113111
asset_content_type: application/zip
114112
publish:
@@ -152,7 +150,7 @@ jobs:
152150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153151
with:
154152
upload_url: ${{ github.event.release.upload_url }}
155-
asset_path: ./dist/package.vsix
153+
asset_path: ./dist/${{ steps.set-version.outputs.name }}.vsix
156154
asset_name: ${{ steps.set-version.outputs.name }}.vsix
157155
asset_content_type: application/zip
158156
- name: Publish to Marketplaces

0 commit comments

Comments
 (0)