Skip to content

Commit 9633c2e

Browse files
committed
added check for existent release
1 parent 47b6b34 commit 9633c2e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ jobs:
7878
echo "📱 App Version: $app_version"
7979
echo "🔖 Is Tag: $is_tag"
8080
81+
- name: Check if release already exists
82+
run: |
83+
if gh release view "${{ steps.version.outputs.release_version }}" &>/dev/null; then
84+
echo "❌ Release ${{ steps.version.outputs.release_version }} already exists. Stopping workflow."
85+
exit 1
86+
fi
87+
echo "✅ Release ${{ steps.version.outputs.release_version }} does not exist. Proceeding."
88+
env:
89+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
8191
# Run tests
8292
test:
8393
needs: validate

0 commit comments

Comments
 (0)