diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-06-30 13:06:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 13:06:25 (GMT) |
commit | 4cf8bb2c6222ce021fcd35b375f89ccf74c73564 (patch) | |
tree | 6a7e7baeea007809b177ddb5d1acdb802a4089cd | |
parent | 9b3feed7844b129f367fb214fe06dbbe7a9d6329 (diff) | |
download | hdf5-4cf8bb2c6222ce021fcd35b375f89ccf74c73564.zip hdf5-4cf8bb2c6222ce021fcd35b375f89ccf74c73564.tar.gz hdf5-4cf8bb2c6222ce021fcd35b375f89ccf74c73564.tar.bz2 |
fix gh action if statements (#3213)
-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 |