From ebe1d2177269cdf188655a524c57529660b370cf Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 13:53:53 +0200 Subject: [PATCH] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index fef26a0..c5af50a 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -38,18 +38,19 @@ jobs: should_run: ${{ steps.should_run.outputs.should_run }} steps: - uses: actions/checkout@v4 - - name: print latest_commit + - 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" + run: | + test -z "$(git rev-list --after='24 hours' ${{ github.sha }})" && echo "should_run=false" >> $GITHUB_ENV build: runs-on: self-hosted timeout-minutes: 30 needs: detect-changes - if: ${{ needs.detect-changes.outputs.should_run == 'true' }} + if: ${{ needs.detect-changes.outputs.should_run != 'false' }} steps: - name: Checkout