diff --git a/.github/workflows/rust_binaries_release.yml b/.github/workflows/rust_binaries_release.yml index 60c3468ae..f907ca1cc 100644 --- a/.github/workflows/rust_binaries_release.yml +++ b/.github/workflows/rust_binaries_release.yml @@ -4,12 +4,20 @@ on: push: branches: - master - - 'releases/**' - - 'hotfix/**' + paths: + - Cargo.toml + - Cargo.lock + - 'crates/**' + - .github/workflows/rust_binaries_release.yml pull_request: types: [opened, synchronize, reopened] branches: - master + paths: + - Cargo.toml + - Cargo.lock + - 'crates/**' + - .github/workflows/rust_binaries_release.yml jobs: binary_matrix: @@ -174,7 +182,7 @@ jobs: version="${{ matrix.binary }}-$version" echo "Master version: $version" - if gh release view "$version" ${{ github.repository }} >/dev/null 2>&1; then + if gh release view "$version" --repo ${{ github.repository }} >/dev/null 2>&1; then echo "Master release for this version already exists" echo "release_required=false" >> $GITHUB_OUTPUT else