From 4e763d6179539e1de7cf7057bc1e528fb05c197b Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:25:40 +0200 Subject: [PATCH] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index c5fca36..d6638f2 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -43,9 +43,13 @@ jobs: 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 "should_run=false" >> $GITHUB_ENV || true + name: Check latest commit is less than a day + run: | + sha=$(git rev-list --after="24 hours" ${{ github.sha }} + if test -z $sha then + echo "should_run=false" >> $GITHUB_OUTPUT + fi build: runs-on: self-hosted timeout-minutes: 30