Private
Public Access
1
0

Fix create-release.py - use env vars instead of CLI args
Some checks failed
CI Pipeline / Rust Format Check (push) Successful in 2s
CI Pipeline / Clippy Lints (push) Successful in 45s
CI Pipeline / Rust Unit Tests (push) Successful in 1m1s
CI Pipeline / Security Audit (push) Successful in 4s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 12s
CI Pipeline / Build .deb & Release (push) Failing after 3m14s

This commit is contained in:
2026-04-27 23:16:53 +00:00
parent 582416e686
commit 2ce7ad0348

View File

@ -258,15 +258,13 @@ jobs:
- name: Create Gitea Release (tags only) - name: Create Gitea Release (tags only)
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
env:
GITEA_TOKEN: ${{ secrets.GITEATOKEN }}
GITEA_URL: https://gitea-lxc.moon-dragon.us
GITEA_REPO: echo/linux_patch_manager
run: | run: |
. "$HOME/.cargo/env"
VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*=.*"\(.*\)"/\1/') VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*=.*"\(.*\)"/\1/')
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
REF_NAME="${GITHUB_REF_NAME:-v${VERSION}}"
DEB=$(ls linux-patch-manager_*.deb) DEB=$(ls linux-patch-manager_*.deb)
python3 scripts/create-release.py \ python3 scripts/create-release.py \
--repo "${REPO}" \ --tag "${GITHUB_REF_NAME}" \
--tag "${REF_NAME}" \ --deb "${DEB}"
--title "Release ${REF_NAME}" \
--token "${{ secrets.GITEATOKEN }}" \
--gitea-url "https://gitea-lxc.moon-dragon.us"