Skip to content

Commit 5cbcd9c

Browse files
committed
Merge branch 'main' into camera-streamer
2 parents e079ecb + a77181e commit 5cbcd9c

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.github/workflows/custopize.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v4
3131

3232
- name: "🔎 Determine OctoPi version"
33-
uses: actions/github-script@v6
33+
uses: actions/github-script@v7
3434
with:
3535
script: |
3636
let release = null;
@@ -163,6 +163,7 @@ jobs:
163163
164164
* OctoPi ${{ env.OCTOPI_VERSION }}
165165
* OctoPrint ${{ env.OCTOPRINT_VERSION }}
166+
* Latest versions of the bundled OctoPrint plugins
166167
* Latest kernel & bootloader
167168
* Latest libcamera-apps
168169
* New camera-streamer based webcam stack
@@ -257,7 +258,7 @@ jobs:
257258
environment: live
258259
steps:
259260

260-
- uses: actions/github-script@v6
261+
- uses: actions/github-script@v7
261262
name: "✔ Mark release as tested"
262263
env:
263264
TAG: "${{ needs.build.outputs.tag }}"

scripts/01-add-yq

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
set -x
2+
set -e
3+
4+
export LC_ALL=C
5+
6+
source /common.sh
7+
install_cleanup_trap
8+
9+
# if pb is there, we don't need to do anything
10+
[ -f /usr/local/bin/yq ] && exit 0
11+
12+
curl -L -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.43.1/yq_linux_arm
13+
chmod +x /usr/local/bin/yq

scripts/02-update-octoprint

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ if [ -n "$OCTOPRINT_VERSION" ]; then
1414
else
1515
sudo -u pi /home/pi/oprint/bin/pip install -U OctoPrint $BUNDLED
1616
fi
17+
18+
# make sure to mark the file check wizard as seen
19+
if [ $(/usr/local/bin/yq '.server.seenWizards.file_check' /home/pi/.octoprint/config.yaml) == "null" ]; then
20+
sudo -u pi FILECHECK_WIZARD=$(sudo -u pi /home/pi/oprint/bin/python -c "import octoprint_file_check; print(octoprint_file_check.WIZARD_VERSION)") /usr/local/bin/yq -i '.server.seenWizards.file_check = env(FILECHECK_WIZARD)' /home/pi/.octoprint/config.yaml
21+
fi

0 commit comments

Comments
 (0)