Skip to content

Commit

Permalink
ci: define file paths on events and fix gh release view args
Browse files Browse the repository at this point in the history
  • Loading branch information
fbozic committed Dec 3, 2024
1 parent 72780c5 commit 4a8167d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/rust_binaries_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a8167d

Please sign in to comment.