Skip to content

Commit

Permalink
Use boolean variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWanderer committed Jul 27, 2024
1 parent ca37e77 commit 48f1b12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
echo Current run commit: ${{ github.sha }}
outputs:
last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }}
should_run: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha != github.sha }}

build:
name: Build
needs: [check]
if: needs.check.outputs.last_sha != github.sha
if: needs.check.outputs.should_run
uses: ./.github/workflows/reusable-build.yml
strategy:
fail-fast: false
Expand Down

0 comments on commit 48f1b12

Please sign in to comment.