|
56 | 56 | mkdir -p "${HOME}/bin" |
57 | 57 | sudo apt update -y |
58 | 58 | sudo apt install dos2unix -y |
59 | | - ##Setup rClone |
60 | | - mkdir -p "${HOME}/.config/rclone" |
61 | | - echo "${{ secrets.RCLONE_CF_R2_PUB }}" > "${HOME}/.config/rclone/rclone.conf" |
62 | 59 | ##User-Agent |
63 | | - USER_AGENT="$(curl -qfsSL 'https://pub.ajam.dev/repos/Azathothas/Wordlists/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}" |
| 60 | + USER_AGENT="$(curl -qfsSL 'https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}" |
64 | 61 | echo "USER_AGENT=${USER_AGENT}" >> "${GITHUB_ENV}" |
65 | 62 | continue-on-error: true |
66 | 63 |
|
|
89 | 86 | sudo apt-get install apt-utils software-properties-common -y |
90 | 87 | sudo apt-get update -y |
91 | 88 | continue-on-error: true |
92 | | -#------------------------------------------------------------------------------------# |
93 | | - - name: rClone BackUp Repo ("https://pub.ajam.dev/repos/${GITHUB_REPOSITORY}") |
94 | | - run: | |
95 | | - # Presets |
96 | | - set +x ; set +e |
97 | | - #--------------# |
98 | | - #copy & chdir to Repo |
99 | | - cp -fr "${GITHUB_WORKSPACE}/main" "${SYSTMP}/REPO" && cd "${SYSTMP}/REPO" |
100 | | - #Git pull |
101 | | - git pull origin main --no-edit 2>/dev/null |
102 | | - #Del Bloat |
103 | | - rm -rf "$(pwd)/.git" |
104 | | - #Upload to Pub |
105 | | - echo -e "[+] Syncing ${GITHUB_REPOSITORY} to pub.ajam.dev/repos/${GITHUB_REPOSITORY} \n" |
106 | | - rclone sync "." "r2:/pub/repos/${GITHUB_REPOSITORY}/" --user-agent="${USER_AGENT}" --buffer-size="10M" --s3-upload-concurrency="50" --s3-chunk-size="10M" --multi-thread-streams="50" --checkers="2000" --transfers="100" --retries="10" --check-first --checksum --copy-links --fast-list --progress |
107 | | - continue-on-error: true |
108 | 89 | #------------------------------------------------------------------------------------# |
109 | 90 | #------------------------------------------------------------------------------------# |
110 | 91 | build-fetch-packages: |
@@ -155,11 +136,8 @@ jobs: |
155 | 136 | ##Setup Minisign |
156 | 137 | mkdir -pv "${HOME}/.minisign" |
157 | 138 | echo "${{ secrets.MINISIGN_SIGKEY }}" > "${HOME}/.minisign/pkgforge.key" |
158 | | - ##Setup rClone |
159 | | - mkdir -pv "${HOME}/.config/rclone" |
160 | | - echo "${{ secrets.CF_META }}" > "${HOME}/.config/rclone/rclone.conf" |
161 | 139 | ##User-Agent |
162 | | - USER_AGENT="$(curl -qfsSL 'https://pub.ajam.dev/repos/Azathothas/Wordlists/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}" |
| 140 | + USER_AGENT="$(curl -qfsSL 'https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}" |
163 | 141 | echo "USER_AGENT=${USER_AGENT}" >> "${GITHUB_ENV}" |
164 | 142 | continue-on-error: true |
165 | 143 |
|
@@ -270,10 +248,10 @@ jobs: |
270 | 248 | fi |
271 | 249 | ##rClone Upload logs |
272 | 250 | 7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD.log" 2>/dev/null |
273 | | - rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/pkgcache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" & |
| 251 | + #rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/pkgcache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" & |
274 | 252 | if [[ -s "${SYSTMP}/BUILD_FAILED.log" && $(stat -c%s "${SYSTMP}/BUILD_FAILED.log") -gt 10 ]]; then |
275 | 253 | 7z a -t7z -mx=9 -mmt="$(($(nproc)+1))" -bsp1 -bt "./${{ github.run_id }}.log.xz" "${SYSTMP}/BUILD_FAILED.log" 2>/dev/null |
276 | | - rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/pkgcache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" |
| 254 | + #rclone copyto "./${{ github.run_id }}.log.xz" "r2:/meta/pkgcache/logs/${{ github.run_id }}.log.xz" --checksum --check-first --user-agent="${USER_AGENT}" |
277 | 255 | fi |
278 | 256 | wait ; echo |
279 | 257 | fi |
|
0 commit comments