Comment out seasonal manifest update steps in release automation workflow

This commit is contained in:
CodeDevMLH
2026-02-04 19:08:13 +01:00
parent 3f8777db9f
commit 629f13ab58

View File

@@ -186,79 +186,79 @@ jobs:
fi fi
# Update Message in Seasonals Repository # Update Message in Seasonals Repository
- name: Checkout Seasonal Manifest Repo # - name: Checkout Seasonal Manifest Repo
uses: actions/checkout@v6 # uses: actions/checkout@v6
with: # with:
repository: ${{ github.repository_owner }}/Jellyfin-Seasonals-Plugin # repository: ${{ github.repository_owner }}/Jellyfin-Seasonals-Plugin
path: seasonal-manifest # path: seasonal-manifest
token: ${{ secrets.JELLYFIN_PLUGIN_MANIFEST_UPDATER_PAT }} # token: ${{ secrets.JELLYFIN_PLUGIN_MANIFEST_UPDATER_PAT }}
- name: Update Seasonal Manifest # - name: Update Seasonal Manifest
shell: bash # shell: bash
run: | # run: |
cd seasonal-manifest # cd seasonal-manifest
REPO_OWNER="${{ github.repository_owner }}" # REPO_OWNER="${{ github.repository_owner }}"
REPO_NAME="${{ github.event.repository.name }}" # REPO_NAME="${{ github.event.repository.name }}"
# 1. Get info from previous steps # # 1. Get info from previous steps
VERSION="${{ env.VERSION }}" # VERSION="${{ env.VERSION }}"
HASH="${{ env.ZIP_HASH }}" # HASH="${{ env.ZIP_HASH }}"
TIME="${{ env.BUILD_TIME }}" # TIME="${{ env.BUILD_TIME }}"
DOWNLOAD_URL="https://git.mahom03-spacecloud.de/$REPO_OWNER/$REPO_NAME/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip" # DOWNLOAD_URL="https://git.mahom03-spacecloud.de/$REPO_OWNER/$REPO_NAME/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
# 2. Get info from env # # 2. Get info from env
PLUGIN_GUID="${{ env.PLUGIN_GUID }}" # PLUGIN_GUID="${{ env.PLUGIN_GUID }}"
CHANGELOG="${{ env.CHANGELOG }}" # CHANGELOG="${{ env.CHANGELOG }}"
TARGET_ABI="${{ env.TARGET_ABI }}" # TARGET_ABI="${{ env.TARGET_ABI }}"
echo "Updating Seasonal Manifest for Plugin GUID: $PLUGIN_GUID" # echo "Updating Seasonal Manifest for Plugin GUID: $PLUGIN_GUID"
# 3. Update/Prepend entry in seasonal manifest.json # # 3. Update/Prepend entry in seasonal manifest.json
# Logic: # # Logic:
# - If array is empty or new version != old version: PREPEND new entry # # - If array is empty or new version != old version: PREPEND new entry
# - If new version == old version: OVERWRITE (update) existing entry (re-release) # # - If new version == old version: OVERWRITE (update) existing entry (re-release)
jq --arg guid "$PLUGIN_GUID" \ # jq --arg guid "$PLUGIN_GUID" \
--arg hash "$HASH" \ # --arg hash "$HASH" \
--arg time "$TIME" \ # --arg time "$TIME" \
--arg url "$DOWNLOAD_URL" \ # --arg url "$DOWNLOAD_URL" \
--arg ver "$VERSION" \ # --arg ver "$VERSION" \
--arg changelog "$CHANGELOG" \ # --arg changelog "$CHANGELOG" \
--arg abi "$TARGET_ABI" \ # --arg abi "$TARGET_ABI" \
'map(if .guid == $guid then # 'map(if .guid == $guid then
if .versions[0].version != $ver then # if .versions[0].version != $ver then
# New Version -> Prepend # # New Version -> Prepend
.versions = [{ # .versions = [{
"version": $ver, # "version": $ver,
"changelog": $changelog, # "changelog": $changelog,
"targetAbi": $abi, # "targetAbi": $abi,
"sourceUrl": $url, # "sourceUrl": $url,
"checksum": $hash, # "checksum": $hash,
"timestamp": $time # "timestamp": $time
}] + .versions # }] + .versions
else # else
# Same Version -> Update existing (overwrite top) # # Same Version -> Update existing (overwrite top)
.versions[0].changelog = $changelog | # .versions[0].changelog = $changelog |
.versions[0].targetAbi = $abi | # .versions[0].targetAbi = $abi |
.versions[0].sourceUrl = $url | # .versions[0].sourceUrl = $url |
.versions[0].checksum = $hash | # .versions[0].checksum = $hash |
.versions[0].timestamp = $time # .versions[0].timestamp = $time
end # end
else . end)' \ # else . end)' \
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json # manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
- name: Commit and Push Seasonal Manifest # - name: Commit and Push Seasonal Manifest
run: | # run: |
cd seasonal-manifest # cd seasonal-manifest
git config user.name "CodeDevMLH" # git config user.name "CodeDevMLH"
git config user.email "145071728+CodeDevMLH@users.noreply.github.com" # git config user.email "145071728+CodeDevMLH@users.noreply.github.com"
# Check if there are changes # # Check if there are changes
if [[ -n $(git status -s) ]]; then # if [[ -n $(git status -s) ]]; then
git add manifest.json # git add manifest.json
git commit -m "Auto-Update MediaBar Enhanced to v${{ env.VERSION }}" # git commit -m "Auto-Update MediaBar Enhanced to v${{ env.VERSION }}"
git push # git push
else # else
echo "No changes to seasonal manifest." # echo "No changes to seasonal manifest."
fi # fi