Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
run: |
echo "🔍 Checking for version tags in this push to main/master..."

# Debug: Show recent commits
echo "Recent commits:"
git log --oneline -5

# Debug: Show all tags
echo "All tags:"
git tag -l | tail -10

# Check if this push contains a commit with "Version" in the message
# This indicates a release was created locally and pushed
if git log --oneline -1 --grep="Version" | grep -q "Version"; then
Expand Down Expand Up @@ -56,8 +64,30 @@ jobs:
fi
else
echo "⚠️ No version commit found in this push"
echo "should_release=false" >> $GITHUB_OUTPUT
exit 0
echo "Looking for any commit with 'Version' in the message..."
git log --oneline --grep="Version" -10

# Fallback: Check if there's a recent tag that might be from this push
echo "Checking for recent tags as fallback..."
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -n "$LATEST_TAG" ]; then
echo "Found latest tag: $LATEST_TAG"
# Check if this tag was created recently (within last 5 commits)
if git log --oneline -5 | grep -q "$LATEST_TAG"; then
VERSION=${LATEST_TAG#v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "tag_name=$LATEST_TAG" >> $GITHUB_OUTPUT
echo "✅ Using latest tag as fallback: $LATEST_TAG"
else
echo "Latest tag is not recent enough"
echo "should_release=false" >> $GITHUB_OUTPUT
exit 0
fi
else
echo "No tags found at all"
echo "should_release=false" >> $GITHUB_OUTPUT
exit 0
fi
fi

- name: Check if release should proceed
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'pycoupler: dynamic model coupling of LPJmL'
version: 1.6.4
version: 1.6.5
date-released: '2025-09-22'
abstract: An LPJmL-Python interface for operating LPJmL in a Python environment
and coupling it with Python models, programmes or simple programming scripts.
Expand Down