Skip to content

Commit

Permalink
Update sync-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NanuIjaz authored Jan 30, 2024
1 parent 58bded1 commit 3d1ab7a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/sync-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jobs:
- name: Create release in forked repository
run: |
echo "$RELEASE_TAG"
git tag -a "$RELEASE_TAG" -m "Release notes for $RELEASE_TAG"
git push origin "$RELEASE_TAG"
if [ -n "$RELEASE_TAG" ]; then
git tag -a "$RELEASE_TAG" -m "Release notes for $RELEASE_TAG"
git push origin "$RELEASE_TAG"
else
echo "No release tag available. Skipping release creation."
fi
- name: Display latest release version
run: echo "Latest Release: $RELEASE_TAG"

0 comments on commit 3d1ab7a

Please sign in to comment.