Compare commits

..
Author SHA1 Message Date
MickLesk b371290b4c ci: fix fork merges and issue locking, merge the drift-closed workflows
Close Matching Issue ran on pull_request, so merged fork PRs had no
secrets and the PocketBase step connected to localhost. It now runs on
pull_request_target; it only checks out the merge commit.

Lock closed issues asked for up to 100 search pages, but search stops at
1000 results and the run failed with 422 whenever more were pending.

The Node.js, PHP and Python drift-closed workflows differed only in the
runtime name, and each skipped run cluttered every PR close.
2026-12-03 19:03:10 +01:00
3 changed files with 44 additions and 58 deletions

No files matched your search

-32
View File
@@ -590,38 +590,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-12-03
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- BentoPDF: use relative redirects in nginx [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19284](https://github.com/community-scripts/ProxmoxVE/pull/19284))
- TeddyCloud: Include custom images in backup [@Sab44](https://github.com/Sab44) ([#19276](https://github.com/community-scripts/ProxmoxVE/pull/19276))
- #### 🔧 Refactor
- AFFiNE: run one server, update to 0.27.4 [@MickLesk](https://github.com/MickLesk) ([#19283](https://github.com/community-scripts/ProxmoxVE/pull/19283))
- Docker/NPMplus (Alpine): use docker-cli-compose instead of a downloaded binary [@MickLesk](https://github.com/MickLesk) ([#19278](https://github.com/community-scripts/ProxmoxVE/pull/19278))
### 💾 Core
- setup_docker: install docker-compose-plugin only next to docker-ce [@MickLesk](https://github.com/MickLesk) ([core#335](https://github.com/community-scripts/core/pull/335))
- core: Stop the run when a disabled script is started [@MickLesk](https://github.com/MickLesk) ([core#330](https://github.com/community-scripts/core/pull/330))
- docker: remove legacy docker-compose binaries that shadow docker-compose-plugin [@MickLesk](https://github.com/MickLesk) ([core#334](https://github.com/community-scripts/core/pull/334))
- tools: add check_for_gl_tag [@MickLesk](https://github.com/MickLesk) ([core#332](https://github.com/community-scripts/core/pull/332))
- core: say what curl said when a download fails [@MickLesk](https://github.com/MickLesk) ([core#331](https://github.com/community-scripts/core/pull/331))
- feat: ask VMs for tags, delete protection and the DNS search domain [@MickLesk](https://github.com/MickLesk) ([core#329](https://github.com/community-scripts/core/pull/329))
### 📚 Documentation
- ci: fix fork merges and issue locking, merge the drift-closed workflows [@MickLesk](https://github.com/MickLesk) ([#19286](https://github.com/community-scripts/ProxmoxVE/pull/19286))
### 📂 Github
- fix(ci): daily release fixes (drop Frontend, keep days apart) [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19274](https://github.com/community-scripts/ProxmoxVE/pull/19274))
- fix(ci): set GH_REPO in the daily release step [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19272](https://github.com/community-scripts/ProxmoxVE/pull/19272))
## 2026-12-02
### 🆕 New Scripts
+17 -23
View File
@@ -31,26 +31,17 @@ function update_script() {
exit
fi
if [[ -f /etc/systemd/system/affine-worker.service ]]; then
msg_info "Removing affine-worker Service"
systemctl disable -q --now affine-worker
rm -f /etc/systemd/system/affine-worker.service
systemctl daemon-reload
systemctl restart affine-web
msg_ok "Removed affine-worker Service"
fi
RELEASE="v0.27.4"
RELEASE="v0.27.3"
if check_for_gh_release "affine_app" "toeverything/AFFiNE" "${RELEASE}" "each release is tested individually before the version is updated. Please do not open issues for this"; then
NODE_VERSION="22" setup_nodejs
msg_info "Stopping Service"
systemctl stop affine-web
msg_ok "Stopped Service"
msg_info "Stopping Services"
systemctl stop affine-web affine-worker
msg_ok "Stopped Services"
ensure_dependencies cmake
create_backup /opt/affine/.env
create_backup /opt/affine/.env /root/.affine/config /root/.affine/storage
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "affine_app" "toeverything/AFFiNE" "tarball" "${RELEASE}" "/opt/affine"
@@ -64,14 +55,14 @@ function update_script() {
msg_info "Rebuilding Application (Patience ~25 mins, don't close the console!)"
cd /opt/affine
source /root/.profile
export PATH="/root/.cargo/bin:$PATH"
export PATH="/root/.cargo/bin:/root/.rbenv/shims:$PATH"
set -a && source /opt/affine/.env && set +a
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
export VITE_CORE_COMMIT_SHA=$(cat ~/.affine_app)
# The build needs a git repository
# Initialize git repo (required for build process)
export HUSKY=0
$STD git init -q
$STD git config user.email "build@local"
@@ -79,6 +70,7 @@ function update_script() {
$STD git add -A
$STD git commit -q -m "update" --no-verify --allow-empty
# Force Turbo to run sequentially
mkdir -p /opt/affine/.turbo
cat <<TURBO >/opt/affine/.turbo/config.json
{
@@ -87,9 +79,10 @@ function update_script() {
TURBO
$STD corepack enable
$STD corepack prepare yarn@4.13.0 --activate
$STD yarn config set enableTelemetry 0
export NODE_OPTIONS="--max-old-space-size=4096"
export NODE_OPTIONS="--max-old-space-size=2048"
$STD yarn install
$STD bash ./scripts/set-version.sh "$(cat ~/.affine_app)"
export BUILD_TYPE=stable
@@ -109,6 +102,8 @@ TURBO
$STD yarn affine init
$STD yarn affine build -p @affine/reader
$STD yarn affine build -p @affine/server
export NODE_OPTIONS="--max-old-space-size=4096"
$STD yarn affine build -p @affine/web
$STD yarn affine build -p @affine/admin
@@ -122,16 +117,15 @@ TURBO
mkdir -p /opt/affine/packages/backend/server/static/mobile
echo '{"publicPath":"/","js":[],"css":[],"gitHash":"","description":""}' \
>/opt/affine/packages/backend/server/static/mobile/assets-manifest.json
msg_ok "Rebuilt Application"
msg_info "Running Migrations"
# Run migrations
cd /opt/affine/packages/backend/server
set -a && source /opt/affine/.env && set +a
$STD node ./scripts/self-host-predeploy.js
msg_ok "Ran Migrations"
msg_info "Starting Service"
systemctl start affine-web
msg_ok "Started Service"
msg_info "Starting Services"
systemctl start affine-web affine-worker
msg_ok "Started Services"
msg_ok "Updated Successfully!"
fi
exit
+27 -3
View File
@@ -31,7 +31,7 @@ PG_DB_NAME="affine" PG_DB_USER="affine" setup_postgresql_db
NODE_VERSION="22" setup_nodejs
setup_rust
fetch_and_deploy_gh_release "affine_app" "toeverything/AFFiNE" "tarball" "v0.27.4" "/opt/affine"
fetch_and_deploy_gh_release "affine_app" "toeverything/AFFiNE" "tarball" "v0.27.3" "/opt/affine"
msg_info "Setting up Directories"
rm -rf /root/.affine
@@ -59,7 +59,7 @@ source /root/.profile
export PATH="/root/.cargo/bin:$PATH"
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
export VITE_CORE_COMMIT_SHA=$(cat ~/.affine_app)
# The build needs a git repository
# # Initialize git repo (required for build process)
export HUSKY=0
$STD git init -q
$STD git config user.email "build@local"
@@ -73,8 +73,10 @@ cat <<TURBO >/opt/affine/.turbo/config.json
}
TURBO
$STD corepack enable
$STD corepack prepare yarn@4.13.0 --activate
$STD yarn config set enableTelemetry 0
export NODE_OPTIONS="--max-old-space-size=4096"
export TSC_COMPILE_ON_ERROR=true
$STD yarn install
$STD bash ./scripts/set-version.sh "$(cat ~/.affine_app)"
export BUILD_TYPE=stable
@@ -93,6 +95,7 @@ ln -sf /opt/affine/packages/backend/native/server-native.node \
$STD yarn affine init
$STD yarn affine build -p @affine/reader
$STD yarn affine build -p @affine/server
export NODE_OPTIONS="--max-old-space-size=4096"
$STD yarn affine build -p @affine/web
$STD yarn affine build -p @affine/admin
mkdir -p /opt/affine/packages/backend/server/static
@@ -132,7 +135,28 @@ RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now redis-server affine-web
cat <<EOF >/etc/systemd/system/affine-worker.service
[Unit]
Description=AFFiNE Background Worker
After=network.target postgresql.service redis-server.service
Requires=postgresql.service redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/affine/packages/backend/server
EnvironmentFile=/opt/affine/.env
Environment=LD_PRELOAD=libjemalloc.so.2
Environment=NODE_OPTIONS=--max-old-space-size=1024
ExecStart=/usr/bin/node ./dist/main.js --worker
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now redis-server affine-web affine-worker
msg_ok "Created Services"
msg_info "Creating Admin User"