Skip to content

Commit

Permalink
add version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Jul 23, 2023
1 parent 244d3b0 commit affbfae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
docker-compose-yaml-paths:
required: false
description: "Array of comma separated paths to docker compose files. Uses current working directory if not provided."
version:
required: false
description: "Version of Preevy to use. Defaults to latest."
default: latest
outputs:
urls-markdown:
description: "The generated URLs of the preview environments create by Preevy, formatted as a markdown table"
Expand All @@ -29,7 +33,7 @@ runs:
node-version: 18
- name: Install the Preevy CLI
shell: bash
run: npm i -g preevy
run: npm i -g preevy@${{ inputs.version }}
- name: Initialize Preevy
shell: bash
run: preevy init --from ${{ inputs.profile-url }}
Expand All @@ -52,7 +56,7 @@ runs:
joined_paths+="-f $path "
fi
done
echo "Running Preevy with files: ${joined_paths}"
# Run the up command
Expand Down

0 comments on commit affbfae

Please sign in to comment.