Skip to content

Commit

Permalink
move from env to step output
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Feb 20, 2024
1 parent 0b56f23 commit 20c0790
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,25 @@ defaults:
run:
shell: bash

env:
TEST_RUN : ${{ inputs.deploy-to == 'test' && 'true' || 'false' }}

jobs:
setup-job-vars:
name: setup job variables
runs-on: ubuntu-latest
outputs:
TEST_RUN: ${{ steps.is_test_run.outputs.TEST_RUN }}
steps:
- id: is_test_run
run: |
echo "TEST_RUN=${{ inputs.deploy-to == 'test' && 'true' || 'false' }}" >> $GITHUB_OUTPUT
bump-version-generate-changelog:
name: Bump package version, Generate changelog

uses: dbt-labs/dbt-adapters/.github/workflows/release_prep_hatch.yml@bumpVersion

with:
version_number: ${{ inputs.version_number }}
test_run: ${{ env.TEST_RUN }}
test_run: ${{ steps.setup-job-vars.outputs.TEST_RUN }}
nightly_release: ${{ inputs.nightly_release }}

secrets: inherit
Expand Down Expand Up @@ -143,7 +150,7 @@ jobs:
with:
version_number: ${{ inputs.version_number }}
changelog_path: ${{ needs.bump-version-generate-changelog.outputs.changelog_path }}
test_run: ${{ env.TEST_RUN }}
test_run: ${{ steps.setup-job-vars.outputs.TEST_RUN }}

pypi-release:
name: Publish to PyPI
Expand Down

0 comments on commit 20c0790

Please sign in to comment.