We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93df8a1 commit a101666Copy full SHA for a101666
1 file changed
.github/workflows/java-publish-maven.yml
@@ -205,9 +205,11 @@ jobs:
205
RELEASE_NOTES=$(envsubst < $GITHUB_WORKSPACE/.github/workflows/java.notes.template)
206
207
# Get the previous tag for generating notes
208
+ # grep returns exit 1 when no lines match (first release), so
209
+ # append "|| true" to prevent pipefail from aborting the script.
210
PREV_TAG=$(git tag --list 'java/v*' --sort=-version:refname \
211
| grep -Fxv "${CURRENT_TAG}" \
- | head -n 1)
212
+ | head -n 1 || true)
213
214
echo "Current tag: ${CURRENT_TAG}"
215
echo "Previous tag: ${PREV_TAG}"
0 commit comments