Skip to content

Commit

Permalink
Allow to skip version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
illixion authored Nov 29, 2023
1 parent 8310748 commit 3d3fbc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Enter version or major/minor/patch'
description: 'Enter version or major/minor/patch/none'
required: true
default: 'patch'
registry:
Expand Down Expand Up @@ -31,6 +31,7 @@ jobs:
- name: Install ovsx
run: npm install ovsx
- name: Bump version and create git tag
if: ${{ github.event.inputs.version != 'none' }}
run: npm version ${{ github.event.inputs.version }}
- name: Package extension
run: npx vsce package
Expand All @@ -51,6 +52,7 @@ jobs:
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Push changes
if: ${{ github.event.inputs.version != 'none' }}
run: |
git config --global user.name "GitHubActions"
git config --global user.email "ghactions@illixion.com"
Expand Down

0 comments on commit 3d3fbc3

Please sign in to comment.