mirror of
https://github.com/Prowlarr/Indexers.git
synced 2026-04-28 20:33:19 +01:00
New: Add target branch selection for indexer sync workflow
- Add target_branch input parameter with automated-indexer-sync as default - Allow manual selection between automated-indexer-sync and master branches - Update script calls to use dynamic target branch parameter 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
bakerboy448
parent
f6d3c9fe03
commit
358767970d
13
.github/workflows/indexer-sync.yml
vendored
13
.github/workflows/indexer-sync.yml
vendored
@@ -17,6 +17,14 @@ on:
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
target_branch:
|
||||
description: 'Target branch for sync (automated-indexer-sync/master)'
|
||||
required: false
|
||||
default: 'automated-indexer-sync'
|
||||
type: choice
|
||||
options:
|
||||
- automated-indexer-sync
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@@ -87,10 +95,11 @@ jobs:
|
||||
- name: Run indexer sync
|
||||
run: |
|
||||
# Run the sync script with -z mode, automation mode, and push enabled
|
||||
TARGET_BRANCH="${{ github.event.inputs.target_branch || 'automated-indexer-sync' }}"
|
||||
if [ "${{ github.event.inputs.debug_mode }}" = "true" ]; then
|
||||
./scripts/indexer-sync-v2.sh -z -a -p -b automated-indexer-sync -o origin -m dev
|
||||
./scripts/indexer-sync-v2.sh -z -a -p -b "$TARGET_BRANCH" -o origin -m dev
|
||||
else
|
||||
./scripts/indexer-sync-v2.sh -z -a -p -b automated-indexer-sync -o origin
|
||||
./scripts/indexer-sync-v2.sh -z -a -p -b "$TARGET_BRANCH" -o origin
|
||||
fi
|
||||
|
||||
- name: Summary
|
||||
|
||||
Reference in New Issue
Block a user