Skip to content

Commit

Permalink
Fix CI workflow conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Popax21 committed Apr 19, 2024
1 parent 384f19c commit d10883e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:

needs: check-apphost-cache
uses: ./.github/workflows/build-apphost.yml
if: ${{ !needs.check-apphost-cache.outputs.cache-hit }}
if: \!needs.check-apphost-cache.outputs.cache-hit

cache-apphost-binaries:
name: Cache built apphost binaries

runs-on: ubuntu-latest
needs: [check-apphost-cache, build-apphost]
if: ${{ !needs.check-apphost-cache.outputs.cache-hit }}
if: \!needs.check-apphost-cache.outputs.cache-hit
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -48,14 +48,15 @@ jobs:
- uses: actions/cache/save@v4
id: cache-check
with:
key: ${{ needs.check-apphost-cache.outputs.cache-key }}
key: needs.check-apphost-cache.outputs.cache-key
path: apphost

build-nugetpkg:
name: Build Nuget package

runs-on: ubuntu-latest
needs: build-apphost
needs: [check-apphost-cache, build-apphost]
if: needs.check-apphost-cache.outputs.cache-hit || needs.build-apphost.result == 'success'
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit d10883e

Please sign in to comment.