Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/checkout configuration #18

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,25 @@ 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"
steps:

- 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
Expand Down
Loading