Skip to content

Commit

Permalink
test for ee builds in action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Jun 5, 2024
1 parent 0aeb3fe commit 49443b9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,12 @@ runs:
TERRAGRUNT_PROVIDER_CACHE: ${{ inputs.cache-dependencies == 'true' && 1 || 0 }}
TERRAGRUNT_PROVIDER_CACHE_DIR: ${{ github.workspace }}/cache
run: |
cd $GITHUB_ACTION_PATH/cli
if [[ ${{ inputs.ee }} == "true" ]]; then
cd $GITHUB_ACTION_PATH/ee/cli
else
cd $GITHUB_ACTION_PATH/cli
fi
go build -o digger ./cmd/digger
chmod +x digger
PATH=$PATH:$(pwd)
Expand Down Expand Up @@ -354,8 +359,8 @@ runs:
id: digger
shell: bash
run: |
if [[ -z ${{ inputs.ee }} ]]; then
curl -sL https://github.com/diggerhq/digger/releases/download/${actionref}/digger-ee-cli-${{ runner.os }}-${{ runner.arch }} -o digger
if [[ ${{ inputs.ee }} == "true" ]]; then
curl -sL https://github.com/diggerhq/digger/releases/download/${actionref}/digger-ee-cli-${{ runner.os }}-${{ runner.arch }} -o digger
else
curl -sL https://github.com/diggerhq/digger/releases/download/${actionref}/digger-cli-${{ runner.os }}-${{ runner.arch }} -o digger
fi
Expand Down

0 comments on commit 49443b9

Please sign in to comment.