|
46 | 46 | echo "Installing Source Sans Pro..." |
47 | 47 | wget -O source-sans-pro.tar.gz https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2 || echo "Source Sans Pro download failed" |
48 | 48 | |
49 | | - # Try alternative approach - clone the font repository |
50 | | - echo "Attempting to install Source Sans fonts from git..." |
51 | | - git clone --depth 1 https://github.com/adobe-fonts/source-sans-pro.git temp-source-sans || echo "Git clone failed" |
52 | | - if [ -d "temp-source-sans" ]; then |
53 | | - sudo mkdir -p /usr/share/fonts/truetype/source-fonts |
54 | | - sudo find temp-source-sans -name "*.otf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No OTF files found" |
55 | | - sudo find temp-source-sans -name "*.ttf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No TTF files found" |
56 | | - rm -rf temp-source-sans |
57 | | - fi |
58 | | - |
59 | | - # Try Source Sans 3 |
60 | | - echo "Attempting to install Source Sans 3..." |
61 | | - git clone --depth 1 https://github.com/adobe-fonts/source-sans.git temp-source-sans-3 || echo "Source Sans 3 git clone failed" |
62 | | - if [ -d "temp-source-sans-3" ]; then |
63 | | - sudo mkdir -p /usr/share/fonts/truetype/source-fonts |
64 | | - sudo find temp-source-sans-3 -name "*.otf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No OTF files found" |
65 | | - sudo find temp-source-sans-3 -name "*.ttf" -exec cp {} /usr/share/fonts/truetype/source-fonts/ \; 2>/dev/null || echo "No TTF files found" |
66 | | - rm -rf temp-source-sans-3 |
67 | | - fi |
68 | | - |
69 | 49 | # Install additional common fonts that might serve as substitutes |
70 | 50 | echo "Installing additional font packages..." |
71 | 51 | sudo apt-get install -y fonts-dejavu fonts-liberation fonts-noto fonts-open-sans || echo "Additional font installation failed" |
@@ -96,31 +76,10 @@ jobs: |
96 | 76 | run: | |
97 | 77 | git config --global user.name "github-actions[bot]" |
98 | 78 | git config --global user.email "github-actions[bot]@users.noreply.github.com" |
99 | | - |
100 | | - # Check if there are any changes to commit |
101 | | - if git diff --quiet cv/resume.pdf 2>/dev/null; then |
102 | | - echo "No changes to CV, skipping commit" |
103 | | - exit 0 |
104 | | - fi |
105 | | - |
106 | | - # Pull latest changes first to avoid conflicts |
107 | | - git pull --rebase origin main || echo "Pull failed, continuing anyway" |
108 | | - |
109 | | - # Add and commit changes |
| 79 | + git pull origin main |
110 | 80 | git add cv/resume.pdf |
111 | 81 | git commit -m "Automated CV update [skip ci]" || echo "No changes to commit" |
112 | | - |
113 | | - # Push with retry logic |
114 | | - for i in {1..3}; do |
115 | | - if git push; then |
116 | | - echo "Push successful on attempt $i" |
117 | | - break |
118 | | - else |
119 | | - echo "Push failed on attempt $i, retrying..." |
120 | | - git pull --rebase origin main || echo "Rebase failed" |
121 | | - sleep 2 |
122 | | - fi |
123 | | - done |
| 82 | + git push |
124 | 83 | env: |
125 | 84 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
126 | 85 |
|
|
0 commit comments