Skip to content

ci matrix

ci matrix #19

Workflow file for this run

---
name: Check library diffs
on:
push:
branches: [master]
pull_request:
paths:
- ".github/actions/**"
- ".github/tools/**"
- ".github/workflows/**"
- "libs/**"
workflow_dispatch: # Allows to trigger the workflow manually in GitHub UI
# 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
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- id: files
uses: Ana06/[email protected]
- run: |
for changed_file in ${{ steps.files.outputs.all }}; do
echo "Do something with this ${changed_file}."
done
- id: set-matrix
run: echo "dirs-to-run=$(python .github/scripts/check_diff.py ${{ steps.files.outputs.all }})" >> $GITHUB_OUTPUT
outputs:
dirs-to-run: ${{ steps.set-matrix.outputs.dirs-to-run }}
ci:
needs: [ build ]
strategy:
matrix:
working-directory: ${{ fromJson(needs.build.outputs.dirs-to-run) }}
uses: ./.github/workflows/_all_ci.yml

Check failure on line 48 in .github/workflows/check_diffs.yml

View workflow run for this annotation

GitHub Actions / Check library diffs

Invalid workflow file

The workflow is not valid. In .github/workflows/check_diffs.yml (Line: 48, Col: 11): Error from called workflow langchain-ai/langchain/.github/workflows/_all_ci.yml@33b180eb5fa32369bcd1b9dc60e9ab7beb3ee9dd (Line: 41, Col: 9): Unexpected symbol: '"libs/core"'. Located at position 29 within expression: inputs.working-directory != "libs/core" In .github/workflows/check_diffs.yml (Line: 48, Col: 11): Error from called workflow langchain-ai/langchain/.github/workflows/_all_ci.yml@33b180eb5fa32369bcd1b9dc60e9ab7beb3ee9dd (Line: 61, Col: 9): Unexpected symbol: '"libs/langchain"'. Located at position 29 within expression: inputs.working-directory == "libs/langchain"
with:
working-directory: ${{ matrix.working-directory }}