Skip to content

Commit

Permalink
תיקון
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Oct 25, 2024
1 parent 5de5e0a commit d1f54b8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish-installer-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:
workflow_dispatch:
inputs:
version:
description: 'הזן את שם הגרסה (למשל, 1.0.0)'
description: 'Version number'
required: false
default: ''

jobs:
build:
Expand All @@ -32,10 +31,13 @@ jobs:
id: get_version
shell: bash
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION=${{ github.event.inputs.version }}
if [ -n "${{ github.event.inputs.version }}" ]; then
VERSION="${{ github.event.inputs.version }}"
elif [[ "${GITHUB_REF}" =~ ^refs/tags/v(.+)$ ]]; then
VERSION="${BASH_REMATCH[1]}"
else
VERSION=${GITHUB_REF#refs/tags/v}
echo "No version specified and could not extract version from tag."
exit 1
fi
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "RELEASE_TITLE=מסדר הסינגלים $VERSION" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -110,7 +112,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_type == 'tag' && github.ref || 'v' + steps.get_version.outputs.VERSION }}
tag_name: v${{ steps.get_version.outputs.VERSION }}
name: ${{ steps.get_version.outputs.RELEASE_TITLE }}
draft: true
prerelease: true
Expand Down

0 comments on commit d1f54b8

Please sign in to comment.