diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index a9b8cdf4dd..e744f600b5 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -32,7 +32,7 @@ jobs: permissions: contents: read outputs: - should_run: ${{ steps.check.outputs.should_run }} + should_run: ${{ fromJSON(steps.check.outputs.should_run) }} steps: - name: Sparse checkout for pre-job action uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -59,7 +59,7 @@ jobs: permissions: contents: read # Skip when PR from a fork - if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && fromJSON(needs.pre-job.outputs.should_run).mobile == true }} + if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && needs.pre-job.outputs.should_run.mobile == true }} runs-on: mich steps: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e9d313bc19..40e7a8d465 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -20,7 +20,7 @@ jobs: permissions: contents: read outputs: - should_run: ${{ steps.check.outputs.should_run }} + should_run: ${{ fromJSON(steps.check.outputs.should_run) }} steps: - name: Sparse checkout for pre-job action uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -54,7 +54,7 @@ jobs: permissions: contents: read packages: write - if: ${{ fromJSON(needs.pre-job.outputs.should_run).machine-learning == false && !github.event.pull_request.head.repo.fork }} + if: ${{ needs.pre-job.outputs.should_run.machine-learning == false && !github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest strategy: matrix: @@ -83,7 +83,7 @@ jobs: permissions: contents: read packages: write - if: ${{ fromJSON(needs.pre-job.outputs.should_run).server == false && !github.event.pull_request.head.repo.fork }} + if: ${{ needs.pre-job.outputs.should_run.server == false && !github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest strategy: matrix: @@ -109,7 +109,7 @@ jobs: machine-learning: name: Build and Push ML needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).machine-learning == true }} + if: ${{ needs.pre-job.outputs.should_run.machine-learning == true }} strategy: fail-fast: false matrix: @@ -154,7 +154,7 @@ jobs: server: name: Build and Push Server needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).server == true }} + if: ${{ needs.pre-job.outputs.should_run.server == true }} uses: immich-app/devtools/.github/workflows/multi-runner-build.yml@129aeda75a450666ce96e8bc8126652e717917a7 # multi-runner-build-workflow-0.1.1 permissions: contents: read diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 9313605f64..eff6b438be 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -18,7 +18,7 @@ jobs: permissions: contents: read outputs: - should_run: ${{ steps.check.outputs.should_run }} + should_run: ${{ fromJSON(steps.check.outputs.should_run) }} steps: - name: Sparse checkout for pre-job action uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -45,7 +45,7 @@ jobs: needs: pre-job permissions: contents: read - if: ${{ fromJSON(needs.pre-job.outputs.should_run).docs == true }} + if: ${{ needs.pre-job.outputs.should_run.docs == true }} runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index b65e60a5f4..6bb3e10f00 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -17,7 +17,7 @@ jobs: permissions: contents: read outputs: - should_run: ${{ steps.check.outputs.should_run }} + should_run: ${{ fromJSON(steps.check.outputs.should_run) }} steps: - name: Sparse checkout for pre-job action uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -41,7 +41,7 @@ jobs: mobile-dart-analyze: name: Run Dart Code Analysis needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).mobile == true }} + if: ${{ needs.pre-job.outputs.should_run.mobile == true }} runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 246c88b039..5bc452c7e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: contents: read outputs: # TODO: Test if the fromJSON can be pulled up to here - should_run: ${{ steps.check.outputs.should_run }} + should_run: ${{ fromJSON(steps.check.outputs.should_run) }} steps: - name: Sparse checkout for pre-job action uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -59,7 +59,7 @@ jobs: server-unit-tests: name: Test & Lint Server needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).server == true }} + if: ${{ needs.pre-job.outputs.should_run.server == true }} runs-on: ubuntu-latest permissions: contents: read @@ -102,7 +102,7 @@ jobs: cli-unit-tests: name: Unit Test CLI needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).cli == true }} + if: ${{ needs.pre-job.outputs.should_run.cli == true }} runs-on: ubuntu-latest permissions: contents: read @@ -149,7 +149,7 @@ jobs: cli-unit-tests-win: name: Unit Test CLI (Windows) needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).cli == true }} + if: ${{ needs.pre-job.outputs.should_run.cli == true }} runs-on: windows-latest permissions: contents: read @@ -189,7 +189,7 @@ jobs: web-lint: name: Lint Web needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).web == true }} + if: ${{ needs.pre-job.outputs.should_run.web == true }} runs-on: mich permissions: contents: read @@ -232,7 +232,7 @@ jobs: web-unit-tests: name: Test Web needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).web == true }} + if: ${{ needs.pre-job.outputs.should_run.web == true }} runs-on: ubuntu-latest permissions: contents: read @@ -271,7 +271,7 @@ jobs: i18n-tests: name: Test i18n needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).i18n == true }} + if: ${{ needs.pre-job.outputs.should_run.i18n == true }} runs-on: ubuntu-latest permissions: contents: read @@ -313,7 +313,7 @@ jobs: e2e-tests-lint: name: End-to-End Lint needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).e2e == true }} + if: ${{ needs.pre-job.outputs.should_run.e2e == true }} runs-on: ubuntu-latest permissions: contents: read @@ -358,7 +358,7 @@ jobs: server-medium-tests: name: Medium Tests (Server) needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).server == true }} + if: ${{ needs.pre-job.outputs.should_run.server == true }} runs-on: ubuntu-latest permissions: contents: read @@ -389,7 +389,7 @@ jobs: e2e-tests-server-cli: name: End-to-End Tests (Server & CLI) needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).e2e == true || fromJSON(needs.pre-job.outputs.should_run).server == true || fromJSON(needs.pre-job.outputs.should_run).cli == true }} + if: ${{ needs.pre-job.outputs.should_run.e2e == true || needs.pre-job.outputs.should_run.server == true || needs.pre-job.outputs.should_run.cli == true }} runs-on: ${{ matrix.runner }} permissions: contents: read @@ -439,7 +439,7 @@ jobs: e2e-tests-web: name: End-to-End Tests (Web) needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).e2e == true || fromJSON(needs.pre-job.outputs.should_run).web == true }} + if: ${{ needs.pre-job.outputs.should_run.e2e == true || needs.pre-job.outputs.should_run.web == true }} runs-on: ${{ matrix.runner }} permissions: contents: read @@ -499,7 +499,7 @@ jobs: mobile-unit-tests: name: Unit Test Mobile needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).mobile == true }} + if: ${{ needs.pre-job.outputs.should_run.mobile == true }} runs-on: ubuntu-latest permissions: contents: read @@ -525,7 +525,7 @@ jobs: ml-unit-tests: name: Unit Test ML needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run).machine-learning == true }} + if: ${{ needs.pre-job.outputs.should_run.machine-learning == true }} runs-on: ubuntu-latest permissions: contents: read @@ -563,7 +563,7 @@ jobs: github-files-formatting: name: .github Files Formatting needs: pre-job - if: ${{ fromJSON(needs.pre-job.outputs.should_run)['.github'] == true }} + if: ${{ needs.pre-job.outputs.should_run['.github'] == true }} runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/weblate-lock.yml b/.github/workflows/weblate-lock.yml index 9bbfd16c0d..5b1ce33ef8 100644 --- a/.github/workflows/weblate-lock.yml +++ b/.github/workflows/weblate-lock.yml @@ -12,7 +12,7 @@ jobs: permissions: contents: read outputs: - should_run: ${{ steps.check.outputs.should_run }} + should_run: ${{ fromJSON(steps.check.outputs.should_run) }} steps: - name: Sparse checkout for pre-job action uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -37,7 +37,7 @@ jobs: needs: [pre-job] runs-on: ubuntu-latest permissions: {} - if: ${{ fromJSON(needs.pre-job.outputs.should_run).i18n == true }} + if: ${{ needs.pre-job.outputs.should_run.i18n == true }} steps: - name: Check weblate lock run: |