Skip to content

Commit ff27e83

Browse files
committed
fetch
1 parent da88ece commit ff27e83

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.github/workflows/build_bootstrap_images_aarch64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
echo "SYSTMP=${SYSTMP}" >> "${GITHUB_ENV}"
113113
#-------------#
114114
##User-Agent
115-
USER_AGENT="$(curl -qfsSL 'https://pub.ajam.dev/repos/Azathothas/Wordlists/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}"
115+
USER_AGENT="$(curl -qfsSL 'https://github.com/pkgforge/devscripts/raw/refs/heads/main/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}"
116116
echo "USER_AGENT=${USER_AGENT}" >> "${GITHUB_ENV}"
117117
continue-on-error: true
118118

.github/workflows/build_bootstrap_images_x86_64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
echo "SYSTMP=${SYSTMP}" >> "${GITHUB_ENV}"
112112
#-------------#
113113
##User-Agent
114-
USER_AGENT="$(curl -qfsSL 'https://pub.ajam.dev/repos/Azathothas/Wordlists/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}"
114+
USER_AGENT="$(curl -qfsSL 'https://github.com/pkgforge/devscripts/raw/refs/heads/main/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}"
115115
echo "USER_AGENT=${USER_AGENT}" >> "${GITHUB_ENV}"
116116
continue-on-error: true
117117

.github/workflows/fetch_runner_images.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ jobs:
2323
file: "/tmp/runner.tar.gz"
2424
runner: "ubuntu-24.04-arm"
2525

26+
- image: "riscv64-Linux"
27+
arch: "riscv64"
28+
file: "/tmp/runner.tar.gz"
29+
runner: "ubuntu-latest"
30+
2631
- image: "x86_64-Linux"
27-
arch: "aarch64"
32+
arch: "x86_64"
2833
file: "/tmp/runner.tar.gz"
2934
runner: "ubuntu-latest"
3035

@@ -61,7 +66,7 @@ jobs:
6166
git config --global "user.email" "[email protected]"
6267
git config --global "user.name" "Azathothas"
6368
##User-Agent
64-
USER_AGENT="$(curl -qfsSL 'https://pub.ajam.dev/repos/Azathothas/Wordlists/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}"
69+
USER_AGENT="$(curl -qfsSL 'https://github.com/pkgforge/devscripts/raw/refs/heads/main/Misc/User-Agents/ua_chrome_macos_latest.txt')" && export USER_AGENT="${USER_AGENT}"
6570
echo "USER_AGENT=${USER_AGENT}" >> "${GITHUB_ENV}"
6671
##Wget
6772
echo 'progress = dot:giga' | sudo tee -a "/etc/wgetrc"
@@ -109,7 +114,11 @@ jobs:
109114
set +x ; set +e
110115
#-------------#
111116
OUT_FILE="${{ matrix.file }}"
112-
SRC_REPO="actions/runner"
117+
if [[ "${{ matrix.image }}" == "riscv64-Linux"]]; then
118+
SRC_REPO="dkurt/github_actions_riscv"
119+
else
120+
SRC_REPO="actions/runner"
121+
fi
113122
pushd "$(mktemp -d)" &>/dev/null && TMPDIR="$(realpath .)"
114123
#Fetch Release Metadata
115124
for i in {1..5}; do
@@ -135,6 +144,9 @@ jobs:
135144
if echo "${{ matrix.image }}" | grep -qiE 'aarch64'; then
136145
REL_DL_URL="$(cat "${TMPDIR}/RELEASES.json" | jq -r '.[] | select(.prerelease | not) | .assets[].browser_download_url | select((. | test("\\.(sha|sha256|sha512|sig)$") | not) and (. | test("apple|darwin|macos|osx|win|x64"; "i") | not))' |\
137146
grep -Ei "arm64" | grep -Ei "linux" | sort --version-sort | tail -n 1 | tr -d '[:space:]')"
147+
elif echo "${{ matrix.image }}" | grep -qiE 'riscv64'; then
148+
REL_DL_URL="$(cat "${TMPDIR}/RELEASES.json" | jq -r '.[] | select(.prerelease | not) | .assets[].browser_download_url | select((. | test("\\.(sha|sha256|sha512|sig)$") | not) and (. | test("apple|arm64|darwin|macos|osx|win"; "i") | not))' |\
149+
grep -Ei "riscv64" | grep -Ei "linux" | sort --version-sort | tail -n 1 | tr -d '[:space:]')"
138150
elif echo "${{ matrix.image }}" | grep -qiE 'x86_64'; then
139151
REL_DL_URL="$(cat "${TMPDIR}/RELEASES.json" | jq -r '.[] | select(.prerelease | not) | .assets[].browser_download_url | select((. | test("\\.(sha|sha256|sha512|sig)$") | not) and (. | test("apple|arm64|darwin|macos|osx|win"; "i") | not))' |\
140152
grep -Ei "x64" | grep -Ei "linux" | sort --version-sort | tail -n 1 | tr -d '[:space:]')"

0 commit comments

Comments
 (0)