File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626# GitHub App setup (org or user app, installed on this repository):
2727# 1. Create a GitHub App with Repository permissions: Contents (Read and write), Metadata (Read).
2828# 2. Install the app on this repository (Only select repositories).
29- # 3. Repository variable: MANUAL_PATCH_RELEASE_APP_ID = App ID (numeric, from app settings).
30- # 4. Repository secret: MANUAL_PATCH_RELEASE_APP_PRIVATE_KEY = App private key (.pem contents).
29+ # 3. Repository secret: CI_BOT_APP_ID = App ID (numeric, from app settings).
30+ # 4. Repository secret: CI_BOT_PRIVATE_KEY = App private key (.pem contents).
3131
3232name : Manual patch release (functions/go)
3333
6464 fetch-depth : 0
6565 fetch-tags : true
6666
67- - name : Fetch remote tags
68- run : git fetch --tags origin
69-
7067 - name : Generate GitHub App token
7168 if : ${{ !inputs.dry_run }}
7269 id : app-token
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ expand_all=0
9696# Bulk mode: every function from `make list-functions`.
9797if [[ " ${outer_trim,,} " == " all" ]]; then
9898 expand_all=1
99- mapfile -t functions < <( printf ' %s\n ' " ${allowed[@]} " | sort -u )
99+ functions=( " ${allowed[@]} " )
100100else
101101 # Explicit list: comma-separated names (strict if missing tags).
102102 IFS=' ,' read -ra raw_parts <<< " ${functions_input}"
@@ -109,10 +109,13 @@ else
109109 fi
110110 functions+=(" $fn " )
111111 done
112- if [[ ${# functions[@]} -eq 0 ]]; then
113- echo " ::error::No function names after parsing MANUAL_PATCH_FUNCTIONS" >&2
114- exit 1
115- fi
112+ fi
113+
114+ mapfile -t functions < <( printf ' %s\n' " ${functions[@]} " | sort -u)
115+
116+ if [[ ${# functions[@]} -eq 0 ]]; then
117+ echo " ::error::No function names after parsing MANUAL_PATCH_FUNCTIONS" >&2
118+ exit 1
116119fi
117120
118121for fn in " ${functions[@]} " ; do
You can’t perform that action at this time.
0 commit comments