diff --git a/action.yaml b/action.yaml index 7d2cb85b0..eeb4346cd 100644 --- a/action.yaml +++ b/action.yaml @@ -70,7 +70,12 @@ runs: shell: bash run: | echo "::group::install kpops package" - pip install -r "${{ steps.requirements.outputs.path }}" + # Check if kpops-version contains ".dev" + if [[ "${{ inputs.kpops-version }}" == *".dev"* ]]; then + pip install -r "${{ steps.requirements.outputs.path }}" -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ + else + pip install -r "${{ steps.requirements.outputs.path }}" + fi echo "::endgroup::" - name: ${{ inputs.command }} ${{ inputs.pipeline }} pipeline diff --git a/docs/docs/user/references/ci-integration/github-actions.md b/docs/docs/user/references/ci-integration/github-actions.md index 7a5c233e9..c1c726e18 100644 --- a/docs/docs/user/references/ci-integration/github-actions.md +++ b/docs/docs/user/references/ci-integration/github-actions.md @@ -33,25 +33,13 @@ steps: pipeline: pipelines/my-pipeline-file.yaml kpops-version: 1.2.3 + # It is possible to use a pre-release KPOps version from TestPyPI https://test.pypi.org/project/kpops/#history - name: Deploy Kafka pipeline uses: bakdata/kpops@main with: command: deploy --execute working-directory: home/my-kpops-root-dir pipeline: pipelines/my-pipeline-file.yaml - kpops-version: 1.2.3 + kpops-version: 1.2.5.dev20230707132709 # ... ``` - -It is possible to use a pre-release KPOps version from [TestPyPI](https://test.pypi.org/project/kpops/#history). - -```yaml -steps: - - name: Deploy Kafka pipeline - uses: bakdata/kpops@main - with: - command: deploy --execute - working-directory: home/my-kpops-root-dir - pipeline: pipelines/my-pipeline-file.yaml - kpops-version: 1.2.5.dev20230707132709 -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ -```