Skip to content

Commit

Permalink
fix: Omit ~/go/bin from task
Browse files Browse the repository at this point in the history
  • Loading branch information
sbp-bvanb committed Dec 13, 2024
1 parent 1eb8f43 commit 07cefe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
- unit
runs-on: ubuntu-22.04
env:
GOBIN: /home/runner/go/bin
TASK_X_REMOTE_TASKFILES: 1
steps:
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
if: inputs.testing-type == 'component' || inputs.testing-type == 'coverage' || inputs.testing-type == 'integration' || inputs.testing-type == 'lint' || inputs.testing-type == 'unit'
shell: bash
run: |
if ! ~/go/bin/task --version | grep -q "Task version: ${{ inputs.task-version }}"; then
if ! task --version | grep -q "Task version: ${{ inputs.task-version }}"; then
major_version=$(echo "${{ inputs.task-version }}" | sed -E 's/^v([0-9]+).*/\1/')
go install github.com/go-task/task/v${major_version}/cmd/task@${{ inputs.task-version }}
fi
Expand Down

0 comments on commit 07cefe3

Please sign in to comment.