Skip to content

Commit

Permalink
Quick check for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Discookie committed Jun 13, 2023
1 parent 4003c96 commit 58ad77c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
- name: Get the version
id: get_version
run: echo version=${GITHUB_REF#refs/tags/} >>$GITHUB_OUTPUT
outputs:
version: ${{ steps.get_version.outputs.version }}

test:
uses: ./.github/workflows/test.yml
package:
needs: [version]
uses: ./.github/workflows/package.yml
with:
version: ${{ needs.version.output.version }}
version: ${{ needs.version.outputs.version }}

build:
name: Create extension
Expand Down Expand Up @@ -56,4 +58,4 @@ jobs:
with:
pat: ${{ secrets[matrix.token] }}
registryUrl: ${{ matrix.registryUrl }}
extensionFile: ./${{ matrix.name }}-${{ needs.version.output.version }}.vsix
extensionFile: ./${{ matrix.name }}-${{ needs.version.outputs.version }}.vsix
2 changes: 2 additions & 0 deletions .github/workflows/test-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
- name: Get the version
id: get_version
run: echo version=0.0.0-$(echo ${GITHUB_SHA} | head -c 7) >>$GITHUB_OUTPUT
outputs:
version: ${{ steps.get_version.outputs.version }}

package:
needs: [version]
Expand Down

0 comments on commit 58ad77c

Please sign in to comment.