Skip to content

Commit dc8f0a6

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

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

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

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,51 +65,33 @@ jobs:
6565
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
6666
run: |
6767
cd sync/target
68-
69-
# Debug: Show current directory and its contents.
70-
echo "Current directory: $(pwd)"
71-
echo "Directory contents:"
72-
ls -la
73-
74-
# Debug: Show git status in detail.
75-
echo "Git status:"
7668
git status
7769
78-
# Debug: Show any differences.
79-
echo "Git diff:"
80-
git diff
81-
8270
git config user.name "github-actions[bot]"
8371
git config user.email "github-actions[bot]@users.noreply.github.com"
8472
85-
# Create new branch (with error handling).
8673
git checkout -b ${{ env.TARGET_BRANCH }} || git checkout ${{ env.TARGET_BRANCH }}
8774
88-
# Debug: Show branch status.
89-
echo "Current branch:"
90-
git branch --show-current
91-
9275
# Only create PR if there are changes.
9376
if [[ -n "$(git status --porcelain)" ]]; then
9477
echo "Changes detected:"
9578
git status --porcelain
9679
9780
# git add .
98-
# git commit -m "sync: Update MDX content from whitepaper"
81+
# git commit -m "sync: Update MDX content from Whitepaper"
9982
# if ! git push -f origin ${{ env.TARGET_BRANCH }}; then
10083
# echo "Failed to push changes"
10184
# exit 1
10285
# fi
10386
10487
echo -e "\nPR that would be created:"
105-
echo "Title: sync: Update MDX content from whitepaper"
106-
echo -e "Body:\nAutomated sync of whitepaper content to MDX format.\n\nThis PR was automatically generated by the sync workflow.\n\n- [ ] Review content changes\n- [ ] Check MDX formatting"
88+
echo "Title: sync: Update MDX content from Whitepaper"
89+
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"
10790
echo "Base: main"
10891
echo "Head: ${{ env.TARGET_BRANCH }}"
10992
echo "Labels: automated, sync"
11093
echo "Assignee: ${{ github.actor }}"
11194
112-
# Show what files would be included.
11395
echo -e "\nFiles that would be included in the PR:"
11496
git diff --name-status
11597
else

0 commit comments

Comments
 (0)