name: Opam Dependency Submission

on:
  push:
    branches:
      - master

concurrency:
  group: opam-dependency-submission
  cancel-in-progress: true

permissions: read-all

jobs:
  opam-dependency-submission:
    permissions:
      contents: write
    runs-on: ubuntu-latest
    steps:
      - name: Checkout tree
        uses: actions/checkout@v4
      - name: Set-up OCaml
        uses: ocaml/setup-ocaml@v3
        with:
          ocaml-compiler: 4
          opam-repositories: |
            satysfi-external: git+https://github.com/gfngfn/satysfi-external-repo.git
            default: git+https://github.com/ocaml/opam-repository.git
      - uses: ocaml/setup-ocaml/analysis@v3
