Skip to content

Commit e06d5c5

Browse files
authored
Update update-publications.yml
trying to ix
1 parent bb47a63 commit e06d5c5

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/update-publications.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,33 @@ jobs:
2424
run: |
2525
pip install scholarly pyyaml
2626
27+
- name: Debug Scholar ID
28+
run: |
29+
echo "Scholar ID is set: ${{ secrets.SCHOLAR_ID != '' }}"
30+
echo "Scholar ID length: ${#SCHOLAR_ID}"
31+
env:
32+
SCHOLAR_ID: ${{ secrets.SCHOLAR_ID }}
33+
2734
- name: Update publications
2835
run: |
36+
echo "Starting publication update..."
2937
python scripts/update_publications.py
38+
echo "Script completed."
39+
40+
echo "Checking if publications.yml was created..."
41+
if [ -f "_data/publications.yml" ]; then
42+
echo "✅ publications.yml created successfully!"
43+
echo "File size: $(wc -c < _data/publications.yml) bytes"
44+
echo "Number of lines: $(wc -l < _data/publications.yml)"
45+
echo "First few lines:"
46+
head -10 _data/publications.yml
47+
else
48+
echo "❌ publications.yml was NOT created"
49+
echo "Current directory contents:"
50+
ls -la
51+
echo "_data directory contents:"
52+
ls -la _data/ || echo "_data directory does not exist"
53+
fi
3054
env:
3155
SCHOLAR_ID: ${{ secrets.SCHOLAR_ID }}
3256

@@ -35,8 +59,11 @@ jobs:
3559
run: |
3660
if [ -n "$(git status --porcelain)" ]; then
3761
echo "changed=true" >> $GITHUB_OUTPUT
62+
echo "Git status shows changes:"
63+
git status --porcelain
3864
else
3965
echo "changed=false" >> $GITHUB_OUTPUT
66+
echo "No changes detected"
4067
fi
4168
4269
- name: Commit and push changes

0 commit comments

Comments
 (0)