You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print_info "jq failed to parse releases.json; alias resolution skipped"
252
+
}
253
+
else
254
+
# Fallback: extract alias value using grep/sed
255
+
# Escape regex special characters in VERSION to avoid unintended matches
256
+
version_escaped=$(printf '%s'"$VERSION"| sed 's/[.[\*^$]/\\&/g')
257
+
resolved_version=$(echo "$releases_json"| grep -o "\"${version_escaped}\"[[:space:]]*:[[:space:]]*\"[^\"]*\""| sed 's/.*:[[:space:]]*"\([^"]*\)"/\1/'| head -1)||true
258
+
fi
259
+
260
+
if [ -n"$resolved_version" ] && [ "$resolved_version"!="$VERSION" ];then
261
+
print_info "Resolved alias '$VERSION' -> '$resolved_version'"
262
+
VERSION="$resolved_version"
263
+
elif [ -n"$resolved_version" ];then
264
+
print_warning "Version '$VERSION' is an alias for itself in releases.json (no change); this may indicate a misconfiguration"
265
+
else
266
+
print_info "No alias found for '$VERSION', using it as-is"
267
+
fi
268
+
else
269
+
print_warning "Could not fetch releases.json; proceeding with version '$VERSION' as-is"
270
+
fi
271
+
238
272
# Try gh extension install if requested (and gh is available)
239
273
if [ "$TRY_GH_INSTALL"=true ] &&command -v gh &> /dev/null;then
240
274
print_info "Attempting to install gh-aw using 'gh extension install'..."
Copy file name to clipboardExpand all lines: setup/md/manifest_protection_create_pr_fallback.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@
8
8
> This was originally intended as a pull request, but the patch modifies protected files. These files may affect project dependencies, CI/CD pipelines, or agent behaviour. **Please review the changes carefully** before creating the pull request.
9
9
>
10
10
> **[Click here to create the pull request once you have reviewed the changes]({create_pr_url})**
11
-
12
-
<details>
13
-
<summary>Protected files</summary>
14
-
15
-
{files}
16
-
17
-
</details>
11
+
>
12
+
> <details>
13
+
> <summary>Protected files</summary>
14
+
>
15
+
> {files}
16
+
>
17
+
> </details>
18
18
19
19
To route changes like this to a review issue instead of blocking, configure `protected-files: fallback-to-issue` in your workflow configuration.
Copy file name to clipboardExpand all lines: setup/md/manifest_protection_push_failed_fallback.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@
6
6
> **Protected Files — Push Permission Denied**
7
7
>
8
8
> This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.
9
-
10
-
<details>
11
-
<summary>Protected files</summary>
12
-
13
-
{files}
14
-
15
-
The push was rejected because GitHub Actions does not have `workflows` permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.
16
-
17
-
</details>
9
+
>
10
+
> <details>
11
+
> <summary>Protected files</summary>
12
+
>
13
+
> {files}
14
+
>
15
+
> The push was rejected because GitHub Actions does not have `workflows` permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.
16
+
>
17
+
> </details>
18
18
19
19
<details>
20
20
<summary><b>Create the pull request manually</b></summary>
> **Please review the changes carefully** before pushing them to the pull request branch. These files may affect project dependencies, CI/CD pipelines, or agent behaviour.
0 commit comments