mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-24 05:50:18 +00:00
Mostly adding a descriptive frontmatter to workflow files. Also address some formatting and outdated artifacts No functional changes outside of [d5457c3](d5457c39ee), [90708a0](90708a0d99), and [338c82d](338c82d21e)
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
# For integrations, we run check_templates.py to ensure that new docs use the correct
|
|
# templates based on their type. See the script for more details.
|
|
|
|
name: '📑 Integration Docs Lint'
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
# If another push to the same PR or branch happens while this workflow is still running,
|
|
# cancel the earlier run in favor of the next run.
|
|
#
|
|
# There's no point in testing an outdated version of the code. GitHub only allows
|
|
# a limited number of job runners to be active at the same time, so it's better to cancel
|
|
# pointless jobs early so that more useful jobs can run sooner.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.10'
|
|
- id: files
|
|
uses: Ana06/get-changed-files@v2.3.0
|
|
with:
|
|
filter: |
|
|
*.ipynb
|
|
*.md
|
|
*.mdx
|
|
- name: '🔍 Check New Documentation Templates'
|
|
run: |
|
|
python docs/scripts/check_templates.py ${{ steps.files.outputs.added }}
|