From a525fb4c9bcc9910cb9f024a6e5f886a9a5291dd Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 13:45:05 +0200 Subject: [PATCH 01/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index f77e9f7..fef26a0 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -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" 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 From ebe1d2177269cdf188655a524c57529660b370cf Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 13:53:53 +0200 Subject: [PATCH 02/19] 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 From 081082862f850e04cfdf49c5867e366db3104b72 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 13:58:22 +0200 Subject: [PATCH 03/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index c5af50a..8657bf5 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -33,24 +33,25 @@ on: jobs: detect_changes: runs-on: ubuntu-latest - name: Check latest commit + name: Detect changes outputs: should_run: ${{ steps.should_run.outputs.should_run }} steps: - - uses: actions/checkout@v4 + - name: Checkout + 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: | + 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 != 'false' }} + if: ${{ needs.detect_changes.outputs.should_run != 'false' }} steps: - name: Checkout From 03e26e6b404868518b0c939773971dc3349f3073 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:07:32 +0200 Subject: [PATCH 04/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 8657bf5..8d96131 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -50,7 +50,7 @@ jobs: build: runs-on: self-hosted timeout-minutes: 30 - needs: detect-changes + needs: detect_changes if: ${{ needs.detect_changes.outputs.should_run != 'false' }} steps: From ea57c2bccdab6d96fe07431cf99dfe9b14315aba Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:08:11 +0200 Subject: [PATCH 05/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 8d96131..24a5625 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -45,8 +45,7 @@ jobs: 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 + 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 From 615313cb6d881d2a9edded3c096519eac067936f Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:13:30 +0200 Subject: [PATCH 06/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 24a5625..5402685 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -45,7 +45,7 @@ jobs: 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 + 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 From 04daa13e2d2398c5b3b11d418cd71bb82d6bebbf Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:15:11 +0200 Subject: [PATCH 07/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 5402685..c5fca36 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -45,7 +45,7 @@ jobs: 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 + run: test -z "$(git rev-list --after='24 hours' ${{ github.sha }})" && echo "should_run=false" >> $GITHUB_ENV || true build: runs-on: self-hosted timeout-minutes: 30 From 4e763d6179539e1de7cf7057bc1e528fb05c197b Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:25:40 +0200 Subject: [PATCH 08/19] 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 From ce5da98758fbe13210ac2c9a3d38360ebfb12f54 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:28:07 +0200 Subject: [PATCH 09/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index d6638f2..6ae8ff0 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -46,9 +46,9 @@ jobs: if: ${{ github.event_name == 'schedule' }} 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 + sha=$(git rev-list --after="24 hours" ${{ github.sha }}) + if test -z "$sha"; then + echo "should_run=false" >> $GITHUB_ENV fi build: runs-on: self-hosted From d617c08e8f08a0b4fdc763a920c4acc504989986 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:34:39 +0200 Subject: [PATCH 10/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 6ae8ff0..180261a 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -46,10 +46,12 @@ jobs: if: ${{ github.event_name == 'schedule' }} name: Check latest commit is less than a day run: | - sha=$(git rev-list --after="24 hours" ${{ github.sha }}) + sha=$(git rev-list --after="24 hours" "$GITHUB_SHA") if test -z "$sha"; then echo "should_run=false" >> $GITHUB_ENV fi + env: + GITHUB_SHA: ${{ github.sha }} build: runs-on: self-hosted timeout-minutes: 30 From d05255fac4658a422135c8072c8232b803d97e2f Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:36:35 +0200 Subject: [PATCH 11/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 180261a..dc71a95 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -46,10 +46,7 @@ jobs: if: ${{ github.event_name == 'schedule' }} 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_ENV - fi + echo "should_run=false" >> $GITHUB_ENV env: GITHUB_SHA: ${{ github.sha }} build: From 35fe1cbf18a580b5781c99a3a7fc085b3989b4d9 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:39:13 +0200 Subject: [PATCH 12/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index dc71a95..2bd3468 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -46,9 +46,7 @@ jobs: if: ${{ github.event_name == 'schedule' }} name: Check latest commit is less than a day run: | - echo "should_run=false" >> $GITHUB_ENV - env: - GITHUB_SHA: ${{ github.sha }} + echo "aaa" build: runs-on: self-hosted timeout-minutes: 30 From bb06cc176048433eb412caa9766d0949f04e15e2 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:41:04 +0200 Subject: [PATCH 13/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 2bd3468..e88e47f 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -47,6 +47,8 @@ jobs: name: Check latest commit is less than a day run: | echo "aaa" + env: + GITHUB_SHA: ${{ github.sha }} build: runs-on: self-hosted timeout-minutes: 30 From a979023829335b98bcf6f6513c75cb6a78ab4952 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:42:50 +0200 Subject: [PATCH 14/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index e88e47f..e214d8c 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -46,7 +46,9 @@ jobs: if: ${{ github.event_name == 'schedule' }} name: Check latest commit is less than a day run: | - echo "aaa" + if true; then + echo "should_run=false" >> $GITHUB_ENV + fi env: GITHUB_SHA: ${{ github.sha }} build: From 36cf00439b9eb4b65b82ba2205e2fea7d2719633 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:45:00 +0200 Subject: [PATCH 15/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index e214d8c..94d6013 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -47,7 +47,7 @@ jobs: name: Check latest commit is less than a day run: | if true; then - echo "should_run=false" >> $GITHUB_ENV + echo "should_run=false" fi env: GITHUB_SHA: ${{ github.sha }} From 83709f4375be0d15508deb0ebdd28c067895d9fe Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:47:06 +0200 Subject: [PATCH 16/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 94d6013..b955d44 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -46,7 +46,8 @@ jobs: if: ${{ github.event_name == 'schedule' }} name: Check latest commit is less than a day run: | - if true; then + sha=$(git rev-list --after="24 hours" "$GITHUB_SHA") + if test -z "$sha"; then echo "should_run=false" fi env: From ffef0f315a03a1db39669c9750fbfca11eeb6e5a Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:49:33 +0200 Subject: [PATCH 17/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index b955d44..21a8ffe 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -48,7 +48,7 @@ jobs: run: | sha=$(git rev-list --after="24 hours" "$GITHUB_SHA") if test -z "$sha"; then - echo "should_run=false" + echo "should_run=false" >> $GITHUB_OUTPUT fi env: GITHUB_SHA: ${{ github.sha }} From d3d7cbc1da77233b99c7841f68abcd6a6624be06 Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:51:56 +0200 Subject: [PATCH 18/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 21a8ffe..4adfe57 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -48,7 +48,7 @@ jobs: run: | sha=$(git rev-list --after="24 hours" "$GITHUB_SHA") if test -z "$sha"; then - echo "should_run=false" >> $GITHUB_OUTPUT + echo "should_run=false" >> "$GITHUB_OUTPUT" fi env: GITHUB_SHA: ${{ github.sha }} From 596166f91129c2ab7abd8f3495767277a1cf962a Mon Sep 17 00:00:00 2001 From: Jakub Marek Date: Thu, 24 Oct 2024 14:53:03 +0200 Subject: [PATCH 19/19] Update ios-selfhosted-build.yml --- .github/workflows/ios-selfhosted-build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ios-selfhosted-build.yml b/.github/workflows/ios-selfhosted-build.yml index 4adfe57..9933c9e 100644 --- a/.github/workflows/ios-selfhosted-build.yml +++ b/.github/workflows/ios-selfhosted-build.yml @@ -46,12 +46,10 @@ jobs: if: ${{ github.event_name == 'schedule' }} name: Check latest commit is less than a day run: | - sha=$(git rev-list --after="24 hours" "$GITHUB_SHA") + sha=$(git rev-list --after="24 hours" ${{ github.sha }}) if test -z "$sha"; then echo "should_run=false" >> "$GITHUB_OUTPUT" fi - env: - GITHUB_SHA: ${{ github.sha }} build: runs-on: self-hosted timeout-minutes: 30