Skip to content

Commit

Permalink
Update nightly build conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Oct 17, 2024
1 parent fe9a3d7 commit 1e621f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
STATUS="$(gh api -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/ecdye/macSubtitleOCR/actions/runs?branch=main&head_sha=${{ github.sha }}&status=completed" | \
jq '.workflow_runs[] | select(.name == "Build") | if .conclusion == "success" then .conclusion end')"
test -n $(git rev-list --after="24 hours" ${{ github.sha }}) &&
if [[ $STATUS == "success" ]]; then
jq '.workflow_runs[] | select(.name == "Build") | .conclusion')"
COMMIT="$(git rev-list --after="24 hours" ${{ github.sha }})""
if [[ $STATUS == "\"success\"" ]] && [[ -n $COMMIT ]]; then
echo "::set-output name=should_run::true"
else
echo "::set-output name=should_run::false"
Expand Down

0 comments on commit 1e621f4

Please sign in to comment.