diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d51663f..a81e9b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,13 +25,7 @@ jobs: id: version shell: bash run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - VERSION="${{ inputs.tag }}" - elif [ "${{ github.event_name }}" = "release" ]; then - VERSION="${{ github.event.release.tag_name }}" - else - VERSION="${{ github.ref_name }}" - fi + VERSION="${{ inputs.tag }}" VERSION="${VERSION#v}" echo "version=$VERSION" >> $GITHUB_OUTPUT @@ -84,13 +78,7 @@ jobs: id: version shell: bash run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - VERSION="${{ inputs.tag }}" - elif [ "${{ github.event_name }}" = "release" ]; then - VERSION="${{ github.event.release.tag_name }}" - else - VERSION="${{ github.ref_name }}" - fi + VERSION="${{ inputs.tag }}" VERSION="${VERSION#v}" echo "version=$VERSION" >> $GITHUB_OUTPUT @@ -187,13 +175,7 @@ jobs: id: version shell: bash run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - VERSION="${{ inputs.tag }}" - elif [ "${{ github.event_name }}" = "release" ]; then - VERSION="${{ github.event.release.tag_name }}" - else - VERSION="${{ github.ref_name }}" - fi + VERSION="${{ inputs.tag }}" VERSION="${VERSION#v}" echo "version=$VERSION" >> $GITHUB_OUTPUT