Skip to content

#0: Add new pull-lfs and repository options to reusable submodule checkout action #1

#0: Add new pull-lfs and repository options to reusable submodule checkout action

#0: Add new pull-lfs and repository options to reusable submodule checkout action #1

name: "build and unit tests"
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
checkout=with-submodules:

Check failure on line 13 in .github/workflows/build-and-unit-tests.yaml

View workflow run for this annotation

GitHub Actions / build and unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-unit-tests.yaml (Line: 13, Col: 3): The identifier 'checkout=with-submodules' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
strategy:
matrix:
pull-lfs: [true, false]
repository: ["${{ github.repository }}", "pytorch/pytorch"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/checkout-with-submodule-lfs
with:
pull-lfs: ${{ matrix.pull-lfs }}
repository: ${{ matrix.repository }}