Skip to content

Commit

Permalink
Update ios-selfhosted-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarek41 authored Oct 24, 2024
1 parent 04daa13 commit 4e763d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ios-selfhosted-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |

Check failure on line 48 in .github/workflows/ios-selfhosted-build.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC1009:info:1:5: The mentioned syntax error was in this command expansion

Check failure on line 48 in .github/workflows/ios-selfhosted-build.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC1049:error:2:1: Did you forget the 'then' for this 'if'?

Check failure on line 48 in .github/workflows/ios-selfhosted-build.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC1073:error:2:1: Couldn't parse this if expression. Fix to allow more checks

Check failure on line 48 in .github/workflows/ios-selfhosted-build.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC1010:warning:2:17: Use semicolon or linefeed before 'then' (or quote to make it literal)

Check failure on line 48 in .github/workflows/ios-selfhosted-build.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC1050:error:4:1: Expected 'then'

Check failure on line 48 in .github/workflows/ios-selfhosted-build.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC1072:error:4:3: Unexpected keyword/token. Fix any mentioned problems and try again
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
Expand Down

0 comments on commit 4e763d6

Please sign in to comment.