Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/merge-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
- name: Merge pull requests
if: steps.cadence.outputs.run == 'true'
env:
EVENT_NAME: ${{ github.event_name }}
SELECTED_REPO: ${{ inputs.repository || 'all' }}
BRANCH: ${{ inputs.branch || 'fossifybot/release' }}
MERGE_METHOD: ${{ inputs.merge_method || 'squash' }}
Expand All @@ -98,6 +99,10 @@ jobs:
run: |
set -uo pipefail

AUTO_MERGE_REPOS=(
"FossifyOrg/Calendar"
)

REPOS=(
"FossifyOrg/Calculator"
"FossifyOrg/Calendar"
Expand Down Expand Up @@ -134,7 +139,10 @@ jobs:
ADMIN_FLAG="--auto"
fi

if [[ "$SELECTED_REPO" != "all" ]]; then
if [[ "$EVENT_NAME" == "schedule" ]]; then
REPOS=("${AUTO_MERGE_REPOS[@]}")
echo "Processing scheduled repositories (${#REPOS[@]} repos)"
elif [[ "$SELECTED_REPO" != "all" ]]; then
REPOS=("$SELECTED_REPO")
echo "Processing single repository: $SELECTED_REPO"
else
Expand Down
Loading