name: BioSimulators Dispatch

on:
  release:
    types: [published]

jobs:
  dispatch:
    runs-on: ubuntu-latest

    steps:
      - name: Dispatch new release version to BioSimulators
        uses: benc-uk/workflow-dispatch@v1
        with:
          workflow: Continuous integration
          repo: biosimulators/Biosimulators_COBRApy
          ref: dev
          token: ${{ secrets.BIOSIM_DISPATCH_TOKEN }}
          inputs: '{ "simulatorVersion": "${{ github.ref_name }}", "simulatorVersionLatest": "true" }'
