diff --git a/.github/workflows/tarball.yml b/.github/workflows/tarball.yml index e1084c063b..11a3894f35 100644 --- a/.github/workflows/tarball.yml +++ b/.github/workflows/tarball.yml @@ -141,20 +141,20 @@ jobs: bin/release -d $GITHUB_WORKSPACE gzip zip shell: bash - - name: Rename release file base name - id: ren-basename - if: ${{ (inputs.use_environ == 'release') && (inputs.use_tag == 'snapshot') }} - run: | - mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.tar.gz hdf5-${{ inputs.use_tag }}.tar.gz - mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.zip hdf5-${{ inputs.use_tag }}.zip - shell: bash - - name: Copy the release file source to a non-versioned file name id: cp-to-non-versioned if: ${{ (inputs.use_environ == 'release') }} run: | - cp hdf5-${{ inputs.use_tag }}.tar.gz hdf5.tar.gz - cp hdf5-${{ inputs.use_tag }}.zip hdf5.zip + cp hdf5-${{ steps.version.outputs.SOURCE_TAG }}.tar.gz hdf5.tar.gz + cp hdf5-${{ steps.version.outputs.SOURCE_TAG }}.zip hdf5.zip + shell: bash + + - name: Rename release file base name + id: ren-basename + if: ${{ (inputs.use_environ == 'release') && (inputs.use_tag == 'snapshot') }} + run: | + mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.tar.gz ${{ inputs.use_tag }}.tar.gz + mv hdf5-${{ steps.version.outputs.SOURCE_TAG }}.zip ${{ inputs.use_tag }}.zip shell: bash - name: List files in the repository