Skip to content

Commit a756c79

Browse files
committed
final adjustments
Assisted-by: Cursor:Opus-4.7 Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
1 parent cde93c7 commit a756c79

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/manual-patch-release.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
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

3232
name: Manual patch release (functions/go)
3333

@@ -64,9 +64,6 @@ jobs:
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

scripts/manual-patch-release.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ expand_all=0
9696
# Bulk mode: every function from `make list-functions`.
9797
if [[ "${outer_trim,,}" == "all" ]]; then
9898
expand_all=1
99-
mapfile -t functions < <(printf '%s\n' "${allowed[@]}" | sort -u)
99+
functions=("${allowed[@]}")
100100
else
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
116119
fi
117120

118121
for fn in "${functions[@]}"; do

0 commit comments

Comments
 (0)