name: Update schemas in contentauth/opensource.contentauth.org
on:
  push:
    tags:
      - "c2pa-v*"
  workflow_dispatch:

permissions:
  contents: read

jobs:
  repository-dispatch:
    runs-on: ubuntu-latest
    steps:
      - name: Send repository dispatch to contentauth/opensource.contentauth.org
        uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
        with:
          event-type: c2pa-rs-release
          repository: contentauth/opensource.contentauth.org
          token: ${{ secrets.TRIGGER_JSON_MANIFEST_UPDATE }}
