Skip to content

Commit

Permalink
fix package directory outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 7, 2024
1 parent 59c68b8 commit ba65a24
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/_package-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,26 @@ on:
description: "The root directory of the package"
value: ${{ jobs.package.outputs.directory }}

defaults:
run:
shell: bash

jobs:
package:
runs-on: ${{ vars.DEFAULT_RUNNER }}
outputs:
directory: ${{ steps.package.outputs.directory }}
steps:
- id: package
shell: bash
run: |
if [ package == 'dbt-adapters' ]
if [[ package == "dbt-adapters" ]]
then
directory="."
else
directory="${{ inputs.package }}"
fi
echo "directory=$directory" >> $GITHUB_OUTPUT
- run: echo "::notice title=$TITLE::$MESSAGE"
env:
TITLE: "Package directory"
MESSAGE: "${{ steps.pacakge.outputs.directory }}"

0 comments on commit ba65a24

Please sign in to comment.