Using fromJson to configure a dynamic matrix

Alas this works on github but not gitea. Does anyone know why and also how one might make it work? I’m guessing that gitea evaluates the matrix strategy for job2 before job1 has run.

name: schema
run-name: test setting matix from JSON
on:
  push:
jobs:
  job1:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.set-matrix.outputs.matrix }}
    steps:
    - id: set-matrix
      run: echo "::set-output name=matrix::[\"afile\", \"another file\"]"
  job2:
    needs: job1
    runs-on: ubuntu-latest
    strategy:
      matrix:
        manifest: ${{ fromJSON(needs.job1.outputs.matrix) }}
    steps:
    - run: echo ${{ matrix.manifest }}

It’s discussed here and supposedly fixed in act - but still seems to be an issue for gitea… Issue: Dynamic Matrix not working · Issue #927 · nektos/act · GitHub

Hi @gilesbradshaw, did you ever figure out if matrix strategy is available/working with Gitea act runners. Thanks!