Skip to content

Commit e73f635

Browse files
authored
Merge pull request #279 from vue-pivottable/develop
πŸ”„ Integrate develop β†’ staging
2 parents d03ca17 + 8696730 commit e73f635

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

β€Ž.github/workflows/integrate-develop.ymlβ€Ž

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,15 @@ jobs:
130130
# Get current PR body
131131
CURRENT_BODY=$(gh pr view $PR_NUMBER --json body --jq '.body')
132132
133-
# Create updated section with escaped content
134-
cat > updated-section.md << 'EOF'
135-
### πŸ”„ Last Updated: TIMESTAMP_PLACEHOLDER
136-
New commits: COUNT_PLACEHOLDER
137-
138-
### πŸ“ Recent Commits
139-
COMMITS_PLACEHOLDER
140-
EOF
141-
142-
# Replace placeholders safely
143-
sed -i "s/TIMESTAMP_PLACEHOLDER/${TIMESTAMP}/g" updated-section.md
144-
sed -i "s/COUNT_PLACEHOLDER/${COMMIT_COUNT}/g" updated-section.md
145-
146-
# Process commits separately and safely
147-
echo "${COMMITS}" | sed 's/%0A/\n/g' | sed 's/%0D//g' | sed 's/%25/%/g' > commits-temp.txt
148-
sed -i '/COMMITS_PLACEHOLDER/r commits-temp.txt' updated-section.md
149-
sed -i '/COMMITS_PLACEHOLDER/d' updated-section.md
150-
133+
# Create updated section safely using echo commands
134+
{
135+
echo "### πŸ”„ Last Updated: ${TIMESTAMP}"
136+
echo "New commits: ${COMMIT_COUNT}"
137+
echo ""
138+
echo "### πŸ“ Recent Commits"
139+
echo "${COMMITS}" | sed 's/%0A/\n/g; s/%0D//g; s/%25/%/g'
140+
} > updated-section.md
141+
151142
UPDATED_SECTION=$(cat updated-section.md)
152143
153144
# Update or append the updated section

0 commit comments

Comments
Β (0)