chore: Modify tparse check (#5425)

pull/5043/merge
Michael Li 1 year ago committed by GitHub
parent dc66aa0556
commit 0a54be59b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -143,11 +143,15 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-go ${{ runner.os }}-go
fail-on-cache-miss: false fail-on-cache-miss: false
- name: Install tools if cache restore fails - name: Install tools if tparse doesn't exist
if: steps.go-cache.outputs.cache-hit != 'true'
run: | run: |
go mod download if command -v tparse &> /dev/null; then
make tools echo "tparse exists"
else
echo "tparse doesn't exist"
go mod download
make tools
fi
- name: Set up plugin cache - name: Set up plugin cache
id: plugin-cache id: plugin-cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0

@ -143,11 +143,15 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-go ${{ runner.os }}-go
fail-on-cache-miss: false fail-on-cache-miss: false
- name: Install tools if cache restore fails - name: Install tools if tparse doesn't exist
if: steps.go-cache.outputs.cache-hit != 'true'
run: | run: |
go mod download if command -v tparse &> /dev/null; then
make tools echo "tparse exists"
else
echo "tparse doesn't exist"
go mod download
make tools
fi
- name: Set up plugin cache - name: Set up plugin cache
id: plugin-cache id: plugin-cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0

Loading…
Cancel
Save