Skip to content

Commit

Permalink
remove internal release workaround for dbt-adapters since it is not c…
Browse files Browse the repository at this point in the history
…urrently published internally
  • Loading branch information
mikealfare committed Dec 7, 2024
1 parent 1d36766 commit 325f534
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/_package-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on:
directory:
description: "The root directory of the package"
value: ${{ jobs.package.outputs.directory }}
version-file:
description: "The path to the version file of the package"
value: ${{ jobs.package.outputs.version-file }}

defaults:
run:
Expand All @@ -24,17 +21,13 @@ jobs:
runs-on: ${{ vars.DEFAULT_RUNNER }}
outputs:
directory: ${{ steps.package.outputs.directory }}
version-file: ${{ steps.package.outputs.version-file }}
steps:
- id: package
run: |
if [[ ${{ inputs.package }} == "dbt-adapters" ]]
then
directory=""
version_file="./dbt/adapters/__about__.py"
else
directory="${{ inputs.package }}/"
version_file="./src/dbt/adapters/$(cut -c 5- ${{ inputs.package }})/__version__.py"
fi
echo "directory=$directory" >> $GITHUB_OUTPUT
echo "version-file=version_file" >> $GITHUB_OUTPUT
2 changes: 1 addition & 1 deletion .github/workflows/_publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
versions_published: ${{ steps.published.outputs.versions }}
- run: |
VERSION=${{ steps.next.outputs.internal_release_version }}+$(git rev-parse HEAD)
tee <<< "version = \"$VERSION\"" ${{ needs.package.outputs.version-file }}
tee <<< "version = \"$VERSION\"" ./src/dbt/adapters/$(cut -c 5- ${{ inputs.package }})/__version__.py
working-directory: ./${{ needs.package.outputs.directory }}
- run: sed -i "/dbt-core[<>~=]/d" ./pyproject.toml
working-directory: ./${{ needs.package.outputs.directory }}
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ code-quality = "pre-commit run --all-files"
unit-tests = "python -m pytest {args:tests/unit}"
workflow-code-quality = "gh workflow run _code-quality.yml --ref $(git rev-parse --abbrev-ref HEAD) -f branch=$(git rev-parse --abbrev-ref HEAD)"
workflow-generate-changelog = "gh workflow run _generate-changelog.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f merge=false -f branch=$(git rev-parse --abbrev-ref HEAD)"
workflow-publish-internal = "gh workflow run _publish-internal.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f deploy-to=test -f branch=$(git rev-parse --abbrev-ref HEAD)"
workflow-publish-pypi = "gh workflow run _publish-pypi.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f deploy-to=test -f branch=$(git rev-parse --abbrev-ref HEAD)"
workflow-unit-tests = "gh workflow run _unit-tests.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f branch=$(git rev-parse --abbrev-ref HEAD)"
workflow-verify-build = "gh workflow run _verify-build.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f branch=$(git rev-parse --abbrev-ref HEAD)"
Expand Down

0 comments on commit 325f534

Please sign in to comment.