From 1c500a8f450a57909831c678a12188eec9524f75 Mon Sep 17 00:00:00 2001 From: Filip Bozic <70634661+fbozic@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:07:57 +0100 Subject: [PATCH] ci: fix permissions for gh release view --- .github/workflows/rust_binaries_release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/rust_binaries_release.yml b/.github/workflows/rust_binaries_release.yml index e04696aaf..f9a76ec4d 100644 --- a/.github/workflows/rust_binaries_release.yml +++ b/.github/workflows/rust_binaries_release.yml @@ -17,6 +17,21 @@ jobs: outputs: binaries: ${{ steps.setup_matrix.outputs.binaries }} steps: + - name: Get version info + id: version_info + shell: bash + run: | + version="merod-0.1.1" + echo "Master version: $version" + + gh release view "$version" --repo calimero-network/core + + if gh release view "$version" --repo ${{ github.repository }} >/dev/null 2>&1; then + echo "Master release for this version already exists" + else + echo "New master release required" + fi + - name: Setup matrix id: setup_matrix run: |