-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,26 +31,25 @@ on: | |
Private App Store Connect API issuer key for submitting build to App Store. | ||
jobs: | ||
detect-changes: | ||
name: Detect Changes | ||
detect_changes: | ||
runs-on: ubuntu-latest | ||
name: Check latest commit | ||
outputs: | ||
project: ${{ steps.changes.outputs.project }} | ||
should_run: ${{ steps.should_run.outputs.should_run }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Detect Changes | ||
uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
filters: | | ||
project: | ||
- '**' | ||
- uses: actions/checkout@v4 | ||
- 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" | ||
Check failure on line 47 in .github/workflows/ios-selfhosted-build.yml GitHub Actions / actionlint
Check failure on line 47 in .github/workflows/ios-selfhosted-build.yml GitHub Actions / actionlint
|
||
build: | ||
runs-on: self-hosted | ||
timeout-minutes: 30 | ||
needs: detect-changes | ||
if: ${{ needs.detect-changes.outputs.project == 'true' }} | ||
if: ${{ needs.detect-changes.outputs.should_run == 'true' }} | ||
|
||
steps: | ||
- name: Checkout | ||
|