Skip to content

Commit a47dc16

Browse files
committed
Content Sync: Testing the action
1 parent dc8f0a6 commit a47dc16

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/sync-to-astro.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,22 @@ jobs:
7777
echo "Changes detected:"
7878
git status --porcelain
7979
80-
# git add .
81-
# git commit -m "sync: Update MDX content from Whitepaper"
82-
# if ! git push -f origin ${{ env.TARGET_BRANCH }}; then
83-
# echo "Failed to push changes"
84-
# exit 1
85-
# fi
80+
git add .
81+
git commit -m "sync: Update MDX content from Whitepaper"
82+
if ! git push -f origin ${{ env.TARGET_BRANCH }}; then
83+
echo "Failed to push changes"
84+
exit 1
85+
fi
8686
87-
echo -e "\nPR that would be created:"
87+
echo -e "\nPR that will be created:"
8888
echo "Title: sync: Update MDX content from Whitepaper"
8989
echo -e "Body:\nAutomated sync of Whitepaper content to MDX format.\n\nThis PR was automatically generated by the sync workflow at https://github.com/apify/actor-whitepaper.\n\n- [ ] Review content changes\n- [ ] Check MDX formatting\n\n"
9090
echo "Base: main"
9191
echo "Head: ${{ env.TARGET_BRANCH }}"
9292
echo "Labels: automated, sync"
9393
echo "Assignee: ${{ github.actor }}"
9494
95-
echo -e "\nFiles that would be included in the PR:"
95+
echo -e "\nFiles that will be included in the PR:"
9696
git diff --name-status
9797
else
9898
echo "No changes detected in git status --porcelain"

0 commit comments

Comments
 (0)