Skip to content

Commit 9ef6578

Browse files
committed
Content Sync: Testing the action
1 parent 6897c07 commit 9ef6578

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ jobs:
2626
pull-requests: write # needed for creating PRs
2727

2828
steps:
29-
# Step 1: Clone the source repo (this repo) into ./source directory.
29+
# Step 1: Clone the source repo (this repo)
3030
- name: Checkout source repo
3131
uses: actions/checkout@v4
3232
with:
33-
path: source
33+
path: sync/source
3434

35-
# Step 2: Clone the target repo (Astro site) into ./target directory
35+
# Step 2: Clone the target repo (Astro site)
3636
- name: Checkout target repo
3737
uses: actions/checkout@v4
3838
with:
3939
repository: ${{ env.TARGET_REPO }}
40-
path: target
40+
path: sync/target
4141
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
4242

4343
# Step 3: Setup Python environment.
@@ -46,26 +46,25 @@ jobs:
4646
with:
4747
python-version: '3.11'
4848
cache: 'pip'
49-
cache-dependency-path: source/requirements.txt
49+
cache-dependency-path: requirements.txt
5050

5151
# Step 4: Install dependencies.
5252
- name: Install dependencies
5353
run: |
54-
cd source
5554
python -m pip install --upgrade pip
5655
python -m pip install -r requirements.txt
5756
5857
# Step 5: Run the MD to MDX conversion script.
5958
- name: Run sync script
6059
run: |
61-
python source/scripts/md2mdx.py
60+
python scripts/md2mdx.py
6261
6362
# Step 6: Create or update PR with changes.
6463
- name: Create Pull Request
6564
env:
6665
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
6766
run: |
68-
cd target
67+
cd sync/target
6968
7069
# Debug: Show current directory and its contents
7170
echo "Current directory: $(pwd)"

0 commit comments

Comments
 (0)