From 4a8167de9e7b1aba0ee00d2916ef8cd059626b50 Mon Sep 17 00:00:00 2001 From: Filip Bozic <70634661+fbozic@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:33:39 +0100 Subject: [PATCH] ci: define file paths on events and fix gh release view args --- .github/workflows/rust_binaries_release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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