Scrape (OCaml Changelog) #160
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Scrape (OCaml Changelog) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Run every day | |
| - cron: 36 5 * * * | |
| jobs: | |
| scrape: | |
| name: Run Scrapers | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| ocaml-compiler: | |
| - "5.2.0" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Use OCaml ${{ matrix.ocaml-compiler }} | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
| dune-cache: ${{ matrix.os != 'macos-latest' }} | |
| opam-repositories: | | |
| pin: git+https://github.com/ocaml/opam-repository#584630e7a7e27e3cf56158696a3fe94623a0cf4f | |
| opam-disable-sandboxing: true | |
| - name: Install system dependencies | |
| run: sudo apt update && sudo apt-get install libev-dev libonig-dev libcurl4-openssl-dev | |
| - name: Install opam dependencies | |
| run: opam install --deps-only --with-test . | |
| - name: Build scraper | |
| run: | | |
| opam exec -- dune build tool/ood-gen/bin/scrape.exe | |
| - name: Run scrapers | |
| run: | | |
| make scrape_platform_releases | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| title: '[scrape_platform_releases.yml] New Platform Releases' | |
| labels: scrape | |
| branch: create-pull-request/patch-scrape-changelog | |
| add-paths: | | |
| data/changelog/*/*.md | |
| commit-message: | | |
| [scrape_platform_releases.yml] New Platform Releases |