fix: Overwrite file if already exists when extracting zip #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: push | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
version: | |
- v1.13.3 | |
- latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./ | |
id: action | |
with: | |
version: ${{ matrix.version }} | |
- name: Check output | |
shell: bash | |
env: | |
VERSION: ${{ steps.action.outputs.version }} | |
run: | | |
if [[ -n "$VERSION" ]]; then | |
echo Got version output: "$VERSION" | |
else | |
echo Version output was empty | |
exit 1 | |
fi | |
- name: Binary exists | |
shell: bash | |
run: command -v kubedb | |
- name: Binary runs | |
shell: bash | |
run: kubedb --version |