Skip to content

Commit

Permalink
fix: display garden version correctly (#9)
Browse files Browse the repository at this point in the history
* fix: display garden version correctly

Currently the action prints the output of "garden version" when using Garden 0.13 at the beginning, instead of the version.

In 0.13 we removed the `-v/--version` flag and now it can only be queried using `garden version`.
 
This also works for Garden 0.12.
  • Loading branch information
stefreak authored Oct 10, 2023
1 parent 9500584 commit c221d0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-garden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ jobs:
uses: ./
with:
garden-version: edge-bonsai
command: --version
command: version

- name: Test 2 - Version should be latest
uses: ./
with:
command: --version
command: version

- name: Test 3 – Only prepare garden version
uses: ./
with:
garden-version: 0.12.44

- name: Test 4 - Version should be 0.12.44
run: garden --version
run: garden version

- name: Test 5 – Prepare kubeconfig and garden-auth-token
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ runs:
# Create new symlink, or overwrite existing
ln -sfn "$garden_version" bin
echo "Using garden version $(bin/garden --version)"
echo "Using $(bin/garden version)"
echo "$GARDEN_DIR/bin" >> "$GITHUB_PATH"
- name: run garden
if: inputs.command
Expand Down

0 comments on commit c221d0e

Please sign in to comment.