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 530923e commit a525fb4
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/ios-selfhosted-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2046:warning:1:9: Quote this to prevent word splitting

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

View workflow job for this annotation

GitHub Actions / actionlint

workflow command "set-output" was deprecated. use `echo "{name}={value}" >> $GITHUB_OUTPUT` instead: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
build:

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

View workflow job for this annotation

GitHub Actions / actionlint

job "build" needs job "detect-changes" which does not exist in this workflow
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' }}

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

View workflow job for this annotation

GitHub Actions / actionlint

property "detect-changes" is not defined in object type {}

steps:
- name: Checkout
Expand Down

0 comments on commit a525fb4

Please sign in to comment.