diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/tarball.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/tarball.yml b/.github/workflows/tarball.yml index 659592f..d57f951 100644 --- a/.github/workflows/tarball.yml +++ b/.github/workflows/tarball.yml @@ -77,7 +77,7 @@ jobs: name: Create a source tarball runs-on: ubuntu-latest needs: check_commits - if: ('${{ inputs.use_environ }}' == 'snapshots' && ${{ needs.check_commits.outputs.has_changes }} == 'true') || '${{ inputs.use_environ }}' == 'release' + if: ${{ ((inputs.use_environ == 'snapshots') && (needs.check_commits.outputs.has_changes == 'true')) || (inputs.use_environ == 'release') }} outputs: file_base: ${{ steps.set-file-base.outputs.FILE_BASE }} steps: @@ -101,7 +101,7 @@ jobs: - name: Set file base name id: set-file-base run: | - if [[ '${{ inputs.use_environ }}' == 'snapshots' && ${{ needs.check_commits.outputs.has_changes }} == 'true' ]] + if [[ '${{ inputs.use_environ }}' == 'snapshots' && '${{ needs.check_commits.outputs.has_changes }}' == 'true' ]] then FILE_NAME_BASE=$(echo "hdf5-${{ needs.check_commits.outputs.branch_ref }}-${{ needs.check_commits.outputs.branch_sha }}") else @@ -112,7 +112,7 @@ jobs: - name: Create snapshot file base name id: create-file-base - if: ${{ inputs.use_environ }} == 'snapshots' && ${{ needs.check_commits.outputs.has_changes }} == 'true' + if: ${{ (inputs.use_environ == 'snapshots') && (needs.check_commits.outputs.has_changes == 'true') }} run: | cd "$GITHUB_WORKSPACE/hdfsrc" bin/bbrelease -d $GITHUB_WORKSPACE --branch ${{ needs.check_commits.outputs.branch_ref }} --revision gzip zip @@ -120,7 +120,7 @@ jobs: - name: Create release file base name id: create-rel-base - if: ${{ inputs.use_environ }} == 'release' + if: ${{ (inputs.use_environ == 'release') }} run: | cd "$GITHUB_WORKSPACE/hdfsrc" bin/release -d $GITHUB_WORKSPACE gzip zip cmake-tgz cmake-zip |