diff options
-rw-r--r-- | .github/workflows/publish-release.yml | 17 | ||||
-rw-r--r-- | .github/workflows/test-release.yml | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 60f16de..64d776a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -72,3 +72,20 @@ jobs: HATCH_INDEX_USER: ${{ secrets.TEST_PYPI_GITLINT_USERNAME }} HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_GITLINT_PASSWORD }} if: inputs.pypi_target == 'test.pypi.org' && inputs.repo_release_ref == 'main' + + check_env: + needs: + - publish + steps: + - name: Print SETUPTOOLS_SCM_PRETEND_VERSION + run: | + echo "$SETUPTOOLS_SCM_PRETEND_VERSION" + + test_release: + needs: + - publish + uses: jorisroovers/gitlint/.github/workflows/test-release.yml@main + with: + gitlint_version: "0.19.0.dev51" + pypi_source: ${{ inputs.pypi_target }} + repo_test_ref: ${{ inputs.repo_release_ref }} diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 7cbada2..f484f77 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -1,6 +1,23 @@ name: Test Release run-name: "Test Release (${{ inputs.gitlint_version }}, pypi_source=${{ inputs.pypi_source }}, repo_test_ref=${{ inputs.repo_test_ref }})" on: + workflow_call: + inputs: + gitlint_version: + description: "Gitlint version to test" + required: true + default: "0.18.0" + pypi_source: + description: "PyPI repository to use" + required: true + type: choice + options: + - "pypi.org" + - "test.pypi.org" + default: "pypi.org" + repo_test_ref: + description: "Git reference to checkout for integration tests" + default: "main" workflow_dispatch: inputs: gitlint_version: |