Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: get proper last tag so nightlies build only when changes detected #168

Merged
merged 2 commits into from
Oct 29, 2024
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
id: check_changes
run: |
git fetch --tags
LAST_RELEASE=$(git tag -l --sort=-version:refname | head -n 1)
if [ -z "$LAST_RELEASE" ]; then
LAST_TAG=$(git tag -l --sort=-creatordate | head -n 1)
if [ -z "$LAST_TAG" ]; then
echo "No previous release found. Proceeding with release."
echo "should_release=true" >> $GITHUB_OUTPUT
else
# check for changes in modules/ directory
CHANGES=$(git diff --name-only $LAST_RELEASE..HEAD -- modules)
CHANGES=$(git diff --name-only $LAST_TAG..HEAD -- modules)
if [ -n "$CHANGES" ]; then
echo "Changes detected in modules/ since last release. Proceeding with release."
echo "should_release=true" >> $GITHUB_OUTPUT
Expand Down
Loading