Skip to content

Commit

Permalink
Quick CI fixes (#87)
Browse files Browse the repository at this point in the history
* Minor typo in release workflow
* Bash is available in GitHub Windows runners
  • Loading branch information
mtmk authored Jul 12, 2023
1 parent 0bafc45 commit 5341478
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
version="$(head -n 1 version.txt)"
ref_name="v$version"
create=true
if ["$(git ls-remote origin "refs/tags/$ref_name" | wc -l)" = "1" ]; then
if [ "$(git ls-remote origin "refs/tags/$ref_name" | wc -l)" = "1" ]; then
create=false
fi
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ jobs:
dotnet-version: '6.x'

- name: Get nats-server
shell: bash
run: |
mkdir tools-nats-server
cd tools-nats-server
curl -Ls "https://binaries.nats.dev/binary/github.com/nats-io/nats-server/v2?os=windows&arch=amd64&version=${{ matrix.config.branch }}" -o nats-server.exe
$current_path = (Get-Item .).FullName
echo "$current_path" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
mkdir tools-nats-server && cd tools-nats-server
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@${{ matrix.config.branch }} | PREFIX=. sh
mv nats-server nats-server.exe
cygpath -w "$(pwd)" | tee -a "$GITHUB_PATH"
- name: Check nats-server
run: nats-server -v
Expand Down

0 comments on commit 5341478

Please sign in to comment.