Skip to content

Commit

Permalink
feat: remove leading 'v' prefix from dispatch inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeg committed Jun 17, 2024
1 parent 36dc326 commit dc29ab9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
jobs:
release:
runs-on: ubuntu-latest
env:
VERSION: ${{ inputs.version }}
steps:
- name: checkout code
uses: actions/checkout@v4
Expand All @@ -22,6 +20,11 @@ jobs:
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: parse input
run: |
VERSION=$(echo "${{ inputs.version }}" | sed -E "s/^v//g")
echo $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: bump versions
run: |
DATE=$(date +"%B %d %Y")
Expand Down

0 comments on commit dc29ab9

Please sign in to comment.