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 c46ce80 commit ac1ebb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sync-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
latestTag=$(curl -s "https://api.github.com/repos/IntersectMBO/cardano-db-sync/releases/latest" | jq -r '.tag_name')
echo "${latestTag}"
echo "RELEASE_TAG=${latestTag}" >> $$GITHUB_ENV
echo "$RELEASE_TAG"
echo "${RELEASE_TAG}"
- name: Create release in forked repository
run: |
if [ -n "$RELEASE_TAG" ]; then
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
Expand Down

0 comments on commit ac1ebb2

Please sign in to comment.