Skip to content

Commit

Permalink
Merge pull request #18 from BenediktHaas96/feature/checkout-configura…
Browse files Browse the repository at this point in the history
…tion

Feature/checkout configuration
  • Loading branch information
lreiher authored Jan 17, 2024
2 parents 86899e2 + 03440a7 commit 7f945ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,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

0 comments on commit 7f945ae

Please sign in to comment.