-
Notifications
You must be signed in to change notification settings - Fork 1
323 lines (314 loc) · 20.4 KB
/
sync_commits.yaml
File metadata and controls
323 lines (314 loc) · 20.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
name: ♻️ Sync Upstream ♻️
#MAX_RUNTIME: 02 Minutes */10 * * * *
on:
workflow_dispatch:
schedule:
- cron: "0 */2 * * *" #@every 2hrs
#------------------------------------------------------------------------------------#
jobs:
sync-upstream:
name: Sync Upstream
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: main
fetch-depth: 1
filter: "blob:none"
- name: Setup Env
run: |
#Presets
set +x ; set +e
#--------------#
##Install coreutils
sudo apt-get update -y -qq && sudo apt-get install curl coreutils dos2unix file findutils gawk git jq moreutils rsync tar xz-utils util-linux wget zip -y -qq
##Install Addons
#https://github.com/pkgforge/devscripts/blob/main/Linux/install_bins_curl.sh
#bash <(curl -qfsSL "https://raw.githubusercontent.com/pkgforge/devscripts/refs/heads/main/Linux/install_bins_curl.sh")
sudo curl -qfsSL "https://bin.pkgforge.dev/$(uname -m)-$(uname -s)/script-parser" -o "/usr/local/bin/script-parser"
sudo chmod 'a+x' "/usr/local/bin/script-parser" ; hash -r &>/dev/null
if ! command -v script-parser &> /dev/null; then
echo -e "\n[-] script-parser NOT Found"
exit 1
fi
##Create Output Dir
mkdir -p "${GITHUB_WORKSPACE}/main"
echo "GIT_TERMINAL_PROMPT=0" >> "${GITHUB_ENV}"
echo "GIT_ASKPASS=/bin/echo" >> "${GITHUB_ENV}"
git config --global "user.email" "AjamX101@gmail.com"
git config --global "user.name" "Azathothas"
continue-on-error: true
- name: Sync "${GITHUB_WORKSPACE}/main" <-- "(https://github.com/ivan-hc/AM)"
run: |
#Presets
set +x ; set +e
#--------------#
##Main
pushd "$(mktemp -d)" &>/dev/null && git clone --filter="blob:none" --quiet "https://github.com/ivan-hc/AM" && cd "./AM"
LATEST_COMMIT="$(git rev-parse HEAD | tr -d "[:space:]")" && export LATEST_COMMIT="${LATEST_COMMIT}"
LATEST_COMMI_M="$(git log -1 --pretty="%B" | sed -e '/^[[:space:]]*$/d;1q')" && export LATEST_COMMIT="${LATEST_COMMIT}"
echo "LATEST_COMMI_M=${LATEST_COMMI_M}" >> "${GITHUB_ENV}"
PREV_COMMIT="$(cat "${GITHUB_WORKSPACE}/main/.github/LATEST.txt" 2>/dev/null)" && export PREV_COMMIT="${PREV_COMMIT}"
if [ "${LATEST_COMMIT}" != "${PREV_COMMIT}" ]; then
#Sync Repo
echo "${LATEST_COMMIT}" > "${GITHUB_WORKSPACE}/main/.github/LATEST.txt"
sed '/^$/d' -i "${GITHUB_WORKSPACE}/main/.github/LATEST.txt"
rm -rfv "./.git/" "./.githooks/" "./.github/" 2>/dev/null
rsync -achLv --remove-source-files --exclude="./.git/**" --exclude="./.github/**" "./" "${GITHUB_WORKSPACE}/main/"
fi
popd &>/dev/null
continue-on-error: true
- name: Remove Reference
run: |
#Presets
set +x ; set +e
#--------------#
##ivan-hc/AM --> pkgforge-community/AM-HF-SYNC
find "${GITHUB_WORKSPACE}/main" -name ".git*" -prune -o -type f -exec sed 's#ivan-hc/AM#pkgforge-community/AM-HF-SYNC#g' -i "{}" + 2>/dev/null
find "${GITHUB_WORKSPACE}/main/modules" -name ".git*" -prune -o -type f -exec sed 's#\^ivan-hc#\^Azathothas#g' -i "{}" + 2>/dev/null
sed 's#\^ivan-hc#\^Azathothas#g' -i "${GITHUB_WORKSPACE}/main/APP-MANAGER"
find "${GITHUB_WORKSPACE}/main/modules" -name ".git*" -prune -o -type f -exec sed 's#\TORSOCKS="1"#unset TORSOCKS#g' -i "{}" + 2>/dev/null
sed 's#\TORSOCKS="1"#unset TORSOCKS#g' -i "${GITHUB_WORKSPACE}/main/APP-MANAGER"
##api.github.com --> api.gh.pkgforge.dev
find "${GITHUB_WORKSPACE}/main" -name ".git*" -prune -o -type f -exec sed 's#api.github.com#api.gh.pkgforge.dev#g' -i "{}" + 2>/dev/null
##repology.org --> api.rl.pkgforge.dev
find "${GITHUB_WORKSPACE}/main" -name ".git*" -prune -o -type f -exec sed 's#repology.org#api.rl.pkgforge.dev#g' -i "{}" + 2>/dev/null
###curl -$ARGS --> curl -A "${USER_AGENT}" -$ARGS
#find "${GITHUB_WORKSPACE}/main" -name ".git*" -prune -o -type f -exec sed '/USER_AGENT/!s#curl -#curl -A "${USER_AGENT}" -#g' -i "{}" + 2>/dev/null
###wget "$ARGS --> wget -U "${USER_AGENT}" "$ARGS
#find "${GITHUB_WORKSPACE}/main" -name ".git*" -prune -o -type f -exec sed '/USER_AGENT/!s#wget "#wget -U "${USER_AGENT}" "#g' -i "{}" + 2>/dev/null
##set -e --> set +e
find "${GITHUB_WORKSPACE}/main" -name ".git*" -prune -o -type f -exec sed 's#set -e#set +e#g' -i "{}" + 2>/dev/null
###set -u --> set +u
#find "${GITHUB_WORKSPACE}/main" -name ".git*" -prune -o -type f -exec sed 's#set -u#set +u#g' -i "{}" + 2>/dev/null
##set -u --> set -ux
find "${GITHUB_WORKSPACE}/main/programs" -name ".git*" -prune -o -type f -exec sed '/set -ux/!s#set -u#set -ux#g' -i "{}" + 2>/dev/null
continue-on-error: true
- name: Update/Generate BUILD_LIST
run: |
#Presets
set +x ; set +e
#--------------#
##AM
pushd "$(mktemp -d)" &>/dev/null && git clone --filter="blob:none" --depth="1" --no-checkout "https://github.com/ivan-hc/AM" && cd "./AM"
git sparse-checkout set "" && git checkout
unset AM_REPO_LOCAL ; AM_REPO_LOCAL="$(realpath .)" && export AM_REPO_LOCAL="${AM_REPO_LOCAL}"
if [ ! -d "${AM_REPO_LOCAL}" ] || [ $(du -s "${AM_REPO_LOCAL}" | cut -f1) -le 100 ]; then
echo -e "\n[X] FATAL: Failed to clone AM Repo\n"
exit 1
fi
popd &>/dev/null
##HF
pushd "$(mktemp -d)" &>/dev/null && git clone --filter="blob:none" --depth="1" --no-checkout "https://huggingface.co/datasets/pkgforge/AMcache" && cd "./AMcache"
git sparse-checkout set "" && git checkout
unset HF_REPO_LOCAL ; HF_REPO_LOCAL="$(realpath .)" && export HF_REPO_LOCAL="${HF_REPO_LOCAL}"
if [ ! -d "${HF_REPO_LOCAL}" ] || [ $(du -s "${HF_REPO_LOCAL}" | cut -f1) -le 100 ]; then
echo -e "\n[X] FATAL: Failed to clone HF Repo\n"
exit 1
fi
popd &>/dev/null
##Generate Input
pushd "$(mktemp -d)" &>/dev/null
##Filters only AppImages
#curl -qfsSL "https://github.com/ivan-hc/AM/raw/main/programs/x86_64-appimages" | sort -u -o "./AI.txt"
##For now, get all
curl -qfsSL "https://github.com/ivan-hc/AM/raw/main/programs/x86_64-apps" | sort -u -o "./AI.txt"
git -C "${AM_REPO_LOCAL}" ls-tree --name-only 'HEAD' -- "programs/x86_64/" | xargs -I "{}" basename "{}" | sort -u | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' | grep -Eiv '\.(git|md|txt)' | sort -u -o "./APP.txt"
#Gen JSON
cat "./APP.txt" |\
jq -Rn '[inputs | gsub("\\s+";"") | select(length > 0) | {pkg: ., source_blob: ("https://github.com/ivan-hc/AM/blob/main/programs/x86_64/" + .), source_raw: ("https://github.com/ivan-hc/AM/raw/main/programs/x86_64/" + .)}]' | jq . > "./APP_RAW.json"
if [[ "$(jq -r '.[] | .pkg' "./APP_RAW.json" | sort -u | grep -Eiv '^null$' | wc -l | tr -cd '[:digit:]')" -gt 1000 ]]; then
#Get Descr
curl -qfsSL "https://github.com/ivan-hc/AM/raw/refs/heads/main/programs/x86_64-apps" | awk \
'
NF && gsub(/^[^a-zA-Z0-9]*/, "") &&
match($0, /^[a-zA-Z0-9][a-zA-Z0-9_.+-]*/) &&
(pkg = substr($0, RSTART, RLENGTH)) &&
(rest = substr($0, RSTART + RLENGTH)) &&
gsub(/^[^a-zA-Z0-9]*/, "", rest) &&
length(rest) > 0 {
gsub(/[ \t]/, "", pkg)
gsub(/^[ \t.]*/, "", rest)
gsub(/[ \t.]*$/, "", rest)
# Remove problematic characters completely
gsub(/["\\]/, "", pkg)
gsub(/["\\]/, "", rest)
gsub(/\n/, " ", rest)
gsub(/\r/, " ", rest)
gsub(/\t/, " ", rest)
print "{\"pkg\": \"" pkg "\", \"description\": \"" rest "\"}"
}
' > "./APP_DESCR.json.tmp"
jq . "./APP_DESCR.json.tmp" | awk '/^\s*{\s*$/{flag=1; buffer="{\n"; next} /^\s*}\s*$/{if(flag){buffer=buffer"}\n"; print buffer}; flag=0; next} flag{buffer=buffer$0"\n"}' | jq -c '. as $line | (fromjson? | .message) // $line' >> "./APP_DESCR.json.raw"
jq -s '[.[] | select(type == "object" and has("pkg"))]
| unique_by(.pkg | ascii_downcase)
| sort_by(.pkg | ascii_downcase)' "./APP_DESCR.json.raw" > "./APP_DESCR.json"
#Parse/Generate Eval
jq -r '.[] | .source_raw' "./APP_RAW.json" | sort -u | grep -Eiv '^null$' | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' > "./APP_URLS.txt"
script-parser --from-file "./APP_URLS.txt" --output "./APP_TMP.json" --parallel "100" --extract --json --transform --verbose
jq -s \
'
flatten
| group_by(.source)
| map({
pkg: (.[] | select(.name | ascii_downcase == "app") | .result),
version_raw: ((.[] | select(.name | ascii_downcase == "version") | .result) // "" | if . == "null" or . == null or . == "" or (. | type == "string" and contains("ERROR:")) then "" else . end),
site: (.[] | select(.name | ascii_downcase == "site") | .result),
source_raw: (.[0].source | sub("/blob/"; "/raw/")),
source_blob: (.[0].source | sub("/raw/"; "/blob/"))
})
| unique_by(.source_raw)
| sort_by(.source_raw)
' "./APP_TMP.json" > "./APP_CMP.json.tmp"
jq -s \
'
.[0] as $raw | .[1] as $cmp |
[
$raw[] as $r |
$cmp[] |
select(.source_blob == $r.source_blob or .source_raw == $r.source_raw) |
{
pkg: $r.pkg,
site: .site,
source_blob: $r.source_blob,
source_raw: $r.source_raw,
version_raw: .version_raw
}
] | unique_by(.source_raw) | sort_by(.pkg)
' "./APP_RAW.json" "./APP_CMP.json.tmp" > "./APP_CMP.json"
if [[ "$(jq -r '.[] | .pkg' "./APP_DESCR.json" | sort -u | grep -Eiv '^null$' | wc -l | tr -cd '[:digit:]')" -gt 1000 ]]; then
if [[ "$(jq -r '.[] | .pkg' "./APP_CMP.json" | sort -u | grep -Eiv '^null$' | wc -l | tr -cd '[:digit:]')" -gt 1000 ]]; then
jq -s \
'
(.[1] | map({(.pkg): .description}) | add) as $descs
| .[0] | map(. + {description: ($descs[.pkg] // "No Description Provided")})
' "./APP_CMP.json" "./APP_DESCR.json" | jq . > "./PKGS.json.tmp"
jq 'walk(if type == "boolean" or type == "number" then tostring else . end)' "./PKGS.json.tmp" | jq \
'
map(select(
.pkg != null and .pkg != "" and
.source_blob != null and .source_blob != "" and
.source_raw != null and .source_raw != "" and
.description != null and .description != ""
))
' > "./PKGS.json.raw"
if [[ "$(jq -r '.[] | .pkg' "./PKGS.json.raw" | sort -u | grep -Eiv '^null$' | wc -l | tr -cd '[:digit:]')" -gt 1000 ]]; then
cp -fv "./PKGS.json.raw" "${GITHUB_WORKSPACE}/main/.github/PKGS.json"
fi
fi
fi
fi
#Main
readarray -t "AM_PKGS_X86_TMP" < <(grep -o -w -f "./APP.txt" "./AI.txt" | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' | grep -Eiv '\.(git|md|txt)' | sort -u)
if [[ -n "${AM_PKGS_X86_TMP[*]}" && "${#AM_PKGS_X86_TMP[@]}" -gt 2000 ]]; then
#Update List
printf "%s\n" "${AM_PKGS_X86_TMP[@]}" | sort -u -o "${GITHUB_WORKSPACE}/main/.github/PKG_LIST_x86_64-Linux.txt"
#Remove Previous Builds
readarray -t "QUEUE_LIST_X86" < <(sort -u "${GITHUB_WORKSPACE}/main/.github/QUEUE_LIST_x86_64-Linux.txt")
#Reset Array to new
AM_PKGS_X86=()
readarray -t "AM_PKGS_X86" < <(printf "%s\n" "${AM_PKGS_X86_TMP[@]}" | sort -u | comm -23 - <(printf "%s\n" "${QUEUE_LIST_X86[@]}" | sort -u))
echo -e "\n[+] AM_PKGS_X86 ==> ${#AM_PKGS_X86[@]}\n"
fi
AM_PREBUILTS=()
readarray -t "AM_PREBUILTS" < <({ git -C "${HF_REPO_LOCAL}" ls-remote --heads origin | awk '{for(i=1; i<=NF; i++) if($i ~ /^refs\/heads\//) {gsub("refs/heads/", "", $i); sub("/.*$", "", $i); print $i}}'; curl -qfsSL "https://meta.pkgforge.dev/external/am/x86_64-Linux.json" | jq -r '.[] | .pkg'; } 2>/dev/null | sort -u | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' | grep -Eiv '\.(git|md|txt)' | sort -u)
if [[ -n "${AM_PREBUILTS[*]}" && "${#AM_PREBUILTS[@]}" -gt 100 ]]; then
printf "%s\n" "${AM_PREBUILTS[@]}" | sort -u -o "${GITHUB_WORKSPACE}/main/.github/CACHE_LIST.txt"
fi
##Generate Build List
#if [[ "${#AM_PKGS_X86[@]}" -gt 2000 && "${#AM_PREBUILTS[@]}" -gt 100 ]]; then
comm -23 <(printf "%s\n" "${AM_PKGS_X86[@]}" | sort) <(printf "%s\n" "${AM_PREBUILTS[@]}" | sort) | sort -u -o "./BUILD_LIST.tmp"
BUILD_LIST_TMP="$(wc -l < "./BUILD_LIST.tmp" | tr -cd '[:digit:]' | tr -d '[:space:]')"
if [[ "${BUILD_LIST_TMP}" -gt 255 ]]; then
echo -e "\n[+] Generating Build List (Diff from Prebuilts [${BUILD_LIST_TMP}])\n"
sed -e '/^[[:space:]]*$/d;256q' "./BUILD_LIST.tmp" | sort -u -o "./BUILD_LIST_x86_64-Linux.txt"
elif [[ "${BUILD_LIST_TMP}" -lt 10 ]]; then
#echo -e "\n[+] Generating Build List (Diff from Prebuilts + PKG_LIST [${BUILD_LIST_TMP}])\n"
#printf "%q\n" "${AM_PKGS_X86[@]:0:240}" | xargs -n1 | sort -u >> "./BUILD_LIST_x86_64-Linux.txt"
sed -e '/^[[:space:]]*$/d;10q' "./BUILD_LIST.tmp" | sort -u -o "./BUILD_LIST_x86_64-Linux.txt"
if [[ "$(wc -l < "./BUILD_LIST_x86_64-Linux.txt" | tr -cd '[:digit:]')" -lt 10 ]]; then
echo -e "\n[+] Generating Build List (Diff from Prebuilts + PKG_LIST + Old Prebuilts)\n"
curl -qfsSL "https://meta.pkgforge.dev/external/am/x86_64-Linux.json" | jq -r --arg CUT_OFF "$(date -u -d '5 days ago' +%Y-%m-%dT%H:%M:%SZ)" '[.[] | select(.build_date < $CUT_OFF) | .pkg][0:240] | .[]' | sort -u >> "./BUILD_LIST_x86_64-Linux.txt"
fi
else
echo -e "\n[+] Generating Build List (Diff from BUILD_LIST [${BUILD_LIST_TMP}])\n"
sed -e '/^[[:space:]]*$/d;256q' "./BUILD_LIST.tmp" | sort -u -o "./BUILD_LIST_x86_64-Linux.txt"
fi
grep -xFf <(sed 's/^[[:space:]]*//;s/[[:space:]]*$//' "${GITHUB_WORKSPACE}/main/.github/PKG_LIST_x86_64-Linux.txt") <(sed 's/^[[:space:]]*//;s/[[:space:]]*$//' "./BUILD_LIST_x86_64-Linux.txt") > "./BUILD_LIST_x86_64-Linux.txt.tmp"
BUILD_LIST_TMP_C="$(wc -l < "./BUILD_LIST_x86_64-Linux.txt.tmp" | tr -cd '[:digit:]' | tr -d '[:space:]')"
if [[ "${BUILD_LIST_TMP_C}" -gt 10 ]]; then
mv -fv "./BUILD_LIST_x86_64-Linux.txt.tmp" "./BUILD_LIST_x86_64-Linux.txt"
else
rm -rfv "./BUILD_LIST_x86_64-Linux.txt.tmp"
fi
cat "./BUILD_LIST_x86_64-Linux.txt" | sort -u | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' | sed -e '/^[[:space:]]*$/d;256q' > "./file1.tmp"
cat "${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt" | sort -u | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' > "./file2.tmp"
comm -23 "./file2.tmp" "./file1.tmp" | sort -u | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' | sed -e '/^[[:space:]]*$/d' | head -n $((255 - $(wc -l < "./file1.tmp"))) > "./diff.tmp"
cat "./file1.tmp" "./diff.tmp" | sort -u | sed -E 's/^[[:space:]]+|[[:space:]]+$//g' | sed -e '/^[[:space:]]*$/d;255q' > "${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt"
#fi
sed -E 's/^[[:space:]]+|[[:space:]]+$//g' -i "${GITHUB_WORKSPACE}/main/.github/CACHE_LIST.txt"
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/CACHE_LIST.txt"
sed -E 's/^[[:space:]]+|[[:space:]]+$//g' -i "${GITHUB_WORKSPACE}/main/.github/PKG_LIST_x86_64-Linux.txt"
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/PKG_LIST_x86_64-Linux.txt"
sed -E 's/^[[:space:]]+|[[:space:]]+$//g' -i "${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt"
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt"
sed -E 's/^[[:space:]]+|[[:space:]]+$//g' -i "${GITHUB_WORKSPACE}/main/.github/QUEUE_LIST_x86_64-Linux.txt"
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/QUEUE_LIST_x86_64-Linux.txt"
grep -xFf <(sed 's/^[[:space:]]*//;s/[[:space:]]*$//' "${GITHUB_WORKSPACE}/main/.github/PKG_LIST_x86_64-Linux.txt") <(sed 's/^[[:space:]]*//;s/[[:space:]]*$//' "${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt") > "./BUILD_LIST_x86_64-Linux.txt.temp"
BUILD_LIST_TMP_F="$(wc -l < "./BUILD_LIST_x86_64-Linux.txt.temp" | tr -cd '[:digit:]' | tr -d '[:space:]')"
if [[ "${BUILD_LIST_TMP_F}" -gt 5 ]]; then
mv -fv "./BUILD_LIST_x86_64-Linux.txt.temp" "${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt"
else
rm -rfv "./BUILD_LIST_x86_64-Linux.txt.temp"
fi
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt"
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/CACHE_LIST.txt"
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/PKG_LIST_x86_64-Linux.txt"
sed '/^[[:space:]]*$/d' -i "${GITHUB_WORKSPACE}/main/.github/QUEUE_LIST_x86_64-Linux.txt"
echo -e "\n[+] Total Packages: $(wc -l < ${GITHUB_WORKSPACE}/main/.github/PKG_LIST_x86_64-Linux.txt)"
echo -e "[+] Total Prebuilts: $(wc -l < ${GITHUB_WORKSPACE}/main/.github/CACHE_LIST.txt)"
echo -e "[+] Total Build Queue: $(wc -l < ${GITHUB_WORKSPACE}/main/.github/BUILD_LIST_x86_64-Linux.txt)"
echo -e "[+] Total Exclusions: $(wc -l < ${GITHUB_WORKSPACE}/main/.github/QUEUE_LIST_x86_64-Linux.txt)\n"
popd &>/dev/null
continue-on-error: true
- name: Get DateTime
run: |
#Presets
set +x ; set +e
#--------------#
NEPALI_TIME="$(TZ='Asia/Kathmandu' date +'%Y-%m-%d (%I:%M:%S %p)')"
echo "NEPALI_TIME=${NEPALI_TIME}" >> "${GITHUB_ENV}"
continue-on-error: true
- name: Pull & Push (1)
run: |
#Presets
set +x ; set +e
#--------------#
cd "${GITHUB_WORKSPACE}/main"
git pull origin main --no-edit 2>/dev/null
git pull origin main --ff-only ; git merge --no-ff -m "Merge & Sync"
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v6
with:
repository: ./main
commit_user_name: Azathothas
commit_user_email: AjamX101@gmail.com
commit_message: "♻️ Synced AM 📦 <-- [${{ env.LATEST_COMMI_M }}] ⌚"
- name: Pull & Push (2)
run: |
#Presets
set +x ; set +e
#--------------#
cd "${GITHUB_WORKSPACE}/main"
git pull origin main --no-edit 2>/dev/null
git pull origin main --ff-only ; git merge --no-ff -m "Merge & Sync"
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v6
with:
repository: ./main
commit_user_name: Azathothas
commit_user_email: AjamX101@gmail.com
commit_message: "♻️ Synced AM 📦 <-- [${{ env.LATEST_COMMI_M }}] ⌚"