From ac79f301d61ef3eddc47a6ce5ae0412ddfd1577f Mon Sep 17 00:00:00 2001 From: Bram Date: Sat, 22 Aug 2026 22:15:52 +0200 Subject: [PATCH] Update Gitea URL variable in release workflow and README documentation --- .gitea/workflows/release_jellyfin_plugin.yml | 11 +++++++++-- Jellyfin/README.md | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/release_jellyfin_plugin.yml b/.gitea/workflows/release_jellyfin_plugin.yml index bfb217f..a71ac7e 100644 --- a/.gitea/workflows/release_jellyfin_plugin.yml +++ b/.gitea/workflows/release_jellyfin_plugin.yml @@ -80,7 +80,7 @@ jobs: env: GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Public base URL for manifest sourceUrl (no trailing slash), e.g. https://gitea.example.com - GITEA_PUBLIC_URL: ${{ secrets.GITEA_PUBLIC_URL }} + PUBLIC_GITEA_URL: ${{ secrets.PUBLIC_GITEA_URL }} PLUGINS: ${{ steps.detect.outputs.plugins }} run: | set -euo pipefail @@ -89,9 +89,16 @@ jobs: echo "Secret PUBLIC_GITEA_URL is not set (public Gitea base URL for plugin catalog sourceUrl)" exit 1 fi + + # API calls use the runner-reachable Gitea URL; catalog links use the public URL GITEA_API_URL="${{ github.server_url }}" + PUBLIC_GITEA_URL="${PUBLIC_GITEA_URL%/}" REPO_OWNER="${{ github.repository_owner }}" REPO_NAME="${{ github.event.repository.name }}" + + git config user.name "gitea-actions" + git config user.email "actions@local" + manifest_dirty=0 while IFS= read -r SLUG; do [[ -z "$SLUG" ]] && continue @@ -160,7 +167,7 @@ jobs: --data-binary "@${ARTIFACT}" \ "${GITEA_API_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/releases/${RELEASE_ID}/assets?name=${ARTIFACT_NAME}" - DOWNLOAD_URL="${GITEA_PUBLIC_URL}/${REPO_OWNER}/${REPO_NAME}/releases/download/${TAG}/${ARTIFACT_NAME}" + DOWNLOAD_URL="${PUBLIC_GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/releases/download/${TAG}/${ARTIFACT_NAME}" TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") GUID=$(grep -E '^guid:' "${PLUGIN_DIR}/build.yaml" | head -1 | sed -E 's/guid:[[:space:]]*"?([^"]*)"?/\1/') TARGET_ABI=$(grep -E '^targetAbi:' "${PLUGIN_DIR}/build.yaml" | head -1 | sed -E 's/targetAbi:[[:space:]]*"?([^"]*)"?/\1/') diff --git a/Jellyfin/README.md b/Jellyfin/README.md index 3446dc3..cadfee8 100644 --- a/Jellyfin/README.md +++ b/Jellyfin/README.md @@ -29,6 +29,6 @@ Bump `Jellyfin//version` before pushing when you want a new release. Re-pu | Secret | Example | Used for | |---|---|---| -| `GITEA_PUBLIC_URL` | `https://gitea.example.com` | `sourceUrl` in `manifest.json` (no trailing slash) | +| `PUBLIC_GITEA_URL` | `https://gitea.example.com` | `sourceUrl` in `manifest.json` (no trailing slash) | API calls still use the runner’s internal Gitea URL; only catalog download links use this secret. \ No newline at end of file