Skip to content

Commit

Permalink
ci: explicit null check in if
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Nov 4, 2024
1 parent 483f2d2 commit 0aba25a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# os: [ubuntu-24.04, macos-15, windows-2022]
os: [windows-2022]
os: [ubuntu-24.04, macos-15, windows-2022]
ghc-version: ['9.6.6']
cabal-version: ['3.12.1.0']
env:
Expand Down Expand Up @@ -209,16 +208,14 @@ jobs:
- name: Install binaries
# Only if there's a version bump and we are merging to main, i.e
# exclude PRs.
#if: ${{ steps.version-bump.outputs.new-version &&
# github.event_name == 'push' &&
# github.ref == 'refs/heads/main' }}
#id: install
if: ${{ steps.version-bump.outputs.new-version != '' &&
github.event_name == 'push' &&
github.ref == 'refs/heads/main' }}
id: install
env:
SPEX_GIT_COMMIT: ${{ github.sha }}
NEW_VERSION: ${{ steps.version-bump.outputs.new-version }}
run: |
echo ${{ steps.version-bump.outputs.new-version }} # make install
echo $env:NEW_VERSION
# - name: Upload binary artifacts
# if: steps.install.outcome == 'success'
Expand Down

0 comments on commit 0aba25a

Please sign in to comment.