Skip to content

Commit

Permalink
Add override to checkout repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Dec 10, 2024
1 parent eb48b6e commit 1eb4f17
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/TestCITools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,9 @@ jobs:

code-quality-check:
name: Code quality check
uses: ./.github/workflows/_extension_code_quality.yml
uses: ./.github/workflows/_extension_code_quality.yml
with:
extension_name: quack
override_repository: duckdb/extension-template
override_ci_tools_repository: ${{ github.repository }}
ci_tools_version: ${{ github.sha }}
11 changes: 10 additions & 1 deletion .github/workflows/_extension_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@ jobs:

steps:
- uses: actions/checkout@v4
name: Checkout current repository
if: ${{inputs.override_repository == ''}}
with:
fetch-depth: 0
submodules: recursive
submodules: 'true'

- uses: actions/checkout@v4
name: Checkout Extension CI tools
with:
path: 'extension-ci-tools'
ref: ${{ inputs.ci_tools_version }}
repository: ${{ inputs.override_ci_tools_repository }}

- name: Install
shell: bash
Expand Down

0 comments on commit 1eb4f17

Please sign in to comment.