Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from gha-trigger/feat/enable-ci-repo-checkout
Browse files Browse the repository at this point in the history
feat: support skipping checkout ci repository
  • Loading branch information
suzuki-shunsuke authored Sep 10, 2022
2 parents 9fd9fd1 + 3470607 commit 9638a06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
- `main_repo_checkout_fetch_depth`
- `main_repo_checkout_lfs`
- `main_repo_checkout_submodules`
- `enable_ci_repo_checkout`
- `ci_repo_checkout_path`
- `ci_repo_checkout_ref`
- `ci_repo_checkout_fetch_depth`
Expand Down
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ inputs:
default: false
required: false

enable_ci_repo_checkout:
description: If true, CI Repository is checked out
default: true
required: false
ci_repo_checkout_path:
description: CI Repository's checkout path
default: .ci
Expand Down Expand Up @@ -83,6 +87,7 @@ runs:
lfs: ${{inputs.main_repo_checkout_lfs}}
submodules: ${{inputs.main_repo_checkout_submodules}}
- uses: actions/checkout@v3
if: inputs.enable_ci_repo_checkout
with:
path: ${{inputs.ci_repo_checkout_path}}
ref: ${{inputs.ci_repo_checkout_ref}}
Expand Down

0 comments on commit 9638a06

Please sign in to comment.