name: Check rive-ios sub modules

on:
  workflow_dispatch:
  push:
    branches:
      - main
  
  schedule:
    # 8am UTC every day
    - cron:  '0 8 * * *'


jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2

      - name: Run cpp version check
        uses: rive-app/github-actions-submodule-check@v8
        with:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
          SUBMODULE_GIT_URL: https://github.com/rive-app/rive-cpp.git