mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-04 21:04:01 +03:00
Simplify version extraction logic in build workflow by removing conditional checks for event types
This commit is contained in:
@@ -247,13 +247,7 @@ jobs:
|
|||||||
id: version
|
id: version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
VERSION="${{ inputs.tag }}"
|
||||||
VERSION="${{ inputs.tag }}"
|
|
||||||
elif [ "${{ github.event_name }}" = "release" ]; then
|
|
||||||
VERSION="${{ github.event.release.tag_name }}"
|
|
||||||
else
|
|
||||||
VERSION="${{ github.ref_name }}"
|
|
||||||
fi
|
|
||||||
VERSION="${VERSION#v}"
|
VERSION="${VERSION#v}"
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
- name: Set docker image names
|
- name: Set docker image names
|
||||||
|
|||||||
Reference in New Issue
Block a user