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
2 changes: 0 additions & 2 deletions .github/workflows/nightly-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
if gh api "repos/${{ github.repository }}/git/refs" \
-f ref="refs/tags/${TAG}" -f sha="${SHA}" 2>/dev/null; then
echo "Created tag: ${TAG}"
gh workflow run release.yml -f "tag=${TAG}"
echo "Triggered release build"
exit 0
fi
done
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
if [[ "$GITHUB_REF" == refs/heads/* ]] && [[ -z "${{ inputs.tag }}" ]]; then
export FORCE_ALPHA=true
fi
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
export OVERRIDE_TAG="${GITHUB_REF#refs/tags/}"
elif [[ -n "${{ inputs.tag }}" ]]; then
export OVERRIDE_TAG="${{ inputs.tag }}"
fi
./generate_changelog.sh

VERSION=$(grep 'DF.ADDON_VERSION' Changelog.lua | sed 's/.*= "\(.*\)"/\1/')
Expand Down
6 changes: 5 additions & 1 deletion generate_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ trim_to_first_section() {
# ============================================================
# DETERMINE VERSION AND CHANGELOG CONTENT
# ============================================================
CURRENT_TAG=$(git describe --exact-match --tags HEAD 2>/dev/null || echo "")
if [ -n "${OVERRIDE_TAG:-}" ]; then
CURRENT_TAG="$OVERRIDE_TAG"
else
CURRENT_TAG=$(git describe --exact-match --tags HEAD 2>/dev/null || echo "")
fi
LAST_TAG=$(git describe --tags --abbrev=0 HEAD 2>/dev/null || echo "v0.0.0")

# Branch pushes must always produce alpha builds, even if a tag exists on HEAD
Expand Down