diff --git a/README.md b/README.md index d74cca6..82f5b40 100644 --- a/README.md +++ b/README.md @@ -362,6 +362,12 @@ Create a folder `additional-files` in your `docker` folder (or configure a diffe - **`-` | `DOCKER_ROS_GIT_REF`** Git reference of *docker-ros* to run in CI *default:* `main` +- **`enable-checkout` | `-`** + Enable [*checkout*](https://github.com/actions/checkout) action to (re-)download your repository prior to running the pipeline + *default:* `true` +- **`enable-checkout-lfs` | `-`** + Enable [*git-lfs*](https://git-lfs.com/) support for the [*checkout*](https://github.com/actions/checkout) action + *default:* `true` - **`enable-industrial-ci` | `ENABLE_INDUSTRIAL_CI`** Enable [*industrial_ci*](https://github.com/ros-industrial/industrial_ci) *default:* `false` diff --git a/action.yml b/action.yml index ad69ea9..99d3720 100644 --- a/action.yml +++ b/action.yml @@ -116,6 +116,14 @@ inputs: description: "Push images with tag `latest`/`latest-dev` in addition to the configured image names" default: false + enable-checkout: + description: "Enable checkout action to (re-)download your repository prior to running the pipeline" + default: true + + enable-checkout-lfs: + description: "Enable git-lfs support for the checkout action " + default: true + runs: using: "composite" @@ -123,9 +131,10 @@ runs: - name: Checkout repository uses: actions/checkout@v3 + if: ${{ inputs.enable-checkout == 'true' }} with: submodules: true - lfs: true + lfs: ${{ inputs.enable-checkout-lfs }} - name: Set up docker-ros shell: bash