Skip to content

Commit

Permalink
Try alternate way of checking last commits
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <[email protected]>
  • Loading branch information
stevecassidy committed Sep 26, 2024
1 parent 86aaf34 commit 8f61541
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/nightly-android-testbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,24 @@ jobs:
check_date:
runs-on: ubuntu-latest
name: Check latest commit
outputs:
should_run: ${{ steps.should_run.outputs.should_run }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for changes
id: check
run: |
git diff --quiet @{yesterday}.. || echo "changed=true" >> $GITHUB_OUTPUT
- name: print latest_commit
run: echo ${{ github.sha }}
- id: should_run
continue-on-error: true
name: check latest commit is less than a day
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"

node-deb-gh-build-play:
runs-on: ubuntu-latest
needs: check_date
if: ${{ needs.check_date.outputs.changed == 'true' }}
if: ${{ needs.check_date.outputs.should_run == 'true' }}
continue-on-error: false
env:
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
Expand Down

0 comments on commit 8f61541

Please sign in to comment.