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
4 changes: 2 additions & 2 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Pipeline
# Triggers automatically on push to main when any version file changes
on:
push:
branches: ["main"]
branches: ["main", "v1.4.0"]

# Prevent concurrent runs
concurrency:
Expand Down Expand Up @@ -594,7 +594,7 @@ jobs:
fi

# Build the message with proper formatting
MESSAGE=$(printf "🚀 **Release Pipeline Complete**\n\n**Components:**\n• Core: %s\n• Framework: %s\n• Plugins: %s\n• Bifrost HTTP: %s\n\n**Details:**\n• Branch: \`main\`\n• Commit: \`%.8s\`\n• Author: %s\n\n[View Workflow Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" "$CORE_STATUS" "$FRAMEWORK_STATUS" "$PLUGINS_STATUS" "$BIFROST_STATUS" "${{ github.sha }}" "${{ github.actor }}")
MESSAGE=$(printf "🚀 **Release Pipeline Complete**\n\n**Components:**\n• Core: %s\n• Framework: %s\n• Plugins: %s\n• Bifrost HTTP: %s\n\n**Details:**\n• Branch: \`${{ github.ref_name }}\`\n• Commit: \`%.8s\`\n• Author: %s\n\n[View Workflow Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" "$CORE_STATUS" "$FRAMEWORK_STATUS" "$PLUGINS_STATUS" "$BIFROST_STATUS" "${{ github.sha }}" "${{ github.actor }}")

payload="$(jq -n --arg content "$MESSAGE" '{content:$content}')"
curl -sS -H "Content-Type: application/json" -d "$payload" "$DISCORD_WEBHOOK"
9 changes: 7 additions & 2 deletions .github/workflows/scripts/push-mintlify-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,12 @@ if ! grep -q "\"$route\"" docs/docs.json; then
fi

# Pulling again before committing
git pull origin main
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [ "$CURRENT_BRANCH" = "HEAD" ]; then
# In detached HEAD state (common in CI), use GITHUB_REF_NAME or default to main
CURRENT_BRANCH="${GITHUB_REF_NAME:-main}"
fi
git pull origin "$CURRENT_BRANCH"
# Commit and push changes
git add docs/changelogs/$VERSION.mdx
git add docs/docs.json
Expand All @@ -247,4 +252,4 @@ done
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -m "Adds changelog for $VERSION --skip-pipeline"
git push origin main
git push origin "$CURRENT_BRANCH"
7 changes: 6 additions & 1 deletion .github/workflows/scripts/release-bifrost-http.sh
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,12 @@ echo "✅ Transport build validation successful"

# Commit and push changes if any
# First, pull latest changes to avoid conflicts
git pull origin main
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [ "$CURRENT_BRANCH" = "HEAD" ]; then
# In detached HEAD state (common in CI), use GITHUB_REF_NAME or default to main
CURRENT_BRANCH="${GITHUB_REF_NAME:-main}"
fi
git pull origin "$CURRENT_BRANCH"

# Stage any changes made to transports/
git add transports/
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scripts/release-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ if ! git diff --cached --quiet; then
git commit -m "framework: bump core to $CORE_VERSION --skip-pipeline"
# Push the bump so go.mod/go.sum changes are recorded on the branch
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [ "$CURRENT_BRANCH" = "HEAD" ]; then
# In detached HEAD state (common in CI), use GITHUB_REF_NAME or default to main
CURRENT_BRANCH="${GITHUB_REF_NAME:-main}"
fi
git push origin "$CURRENT_BRANCH"
echo "🔧 Pushed framework bump to $CURRENT_BRANCH"
else
Expand Down
Loading