@xn-intenton-z2a/agentic-lib 7.1.28 → 7.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/actions/commit-if-changed/action.yml +26 -7
- package/src/seeds/zero-package.json +1 -1
- package/src/workflows/agent-discussions-bot.yml +10 -3
- package/src/workflows/agent-flow-maintain.yml +3 -1
- package/src/workflows/agent-flow-review.yml +3 -1
- package/src/workflows/agent-flow-transform.yml +3 -1
package/package.json
CHANGED
|
@@ -31,11 +31,30 @@ runs:
|
|
|
31
31
|
else
|
|
32
32
|
git commit -m "${{ inputs.commit-message }}"
|
|
33
33
|
REF="${{ inputs.push-ref }}"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
MAX_RETRIES=3
|
|
35
|
+
for attempt in $(seq 1 $MAX_RETRIES); do
|
|
36
|
+
if [ -n "$REF" ]; then
|
|
37
|
+
git pull --rebase origin "$REF" || {
|
|
38
|
+
echo "Rebase conflict on attempt $attempt — aborting rebase and retrying"
|
|
39
|
+
git rebase --abort 2>/dev/null || true
|
|
40
|
+
sleep $((attempt * 2))
|
|
41
|
+
continue
|
|
42
|
+
}
|
|
43
|
+
git push origin "$REF" && break
|
|
44
|
+
else
|
|
45
|
+
git pull --rebase || {
|
|
46
|
+
echo "Rebase conflict on attempt $attempt — aborting rebase and retrying"
|
|
47
|
+
git rebase --abort 2>/dev/null || true
|
|
48
|
+
sleep $((attempt * 2))
|
|
49
|
+
continue
|
|
50
|
+
}
|
|
51
|
+
git push && break
|
|
52
|
+
fi
|
|
53
|
+
if [ "$attempt" -eq "$MAX_RETRIES" ]; then
|
|
54
|
+
echo "::error::Failed to push after $MAX_RETRIES attempts"
|
|
55
|
+
exit 1
|
|
56
|
+
fi
|
|
57
|
+
echo "Push failed on attempt $attempt, retrying..."
|
|
58
|
+
sleep $((attempt * 2))
|
|
59
|
+
done
|
|
41
60
|
fi
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
name: agent-discussions-bot
|
|
9
9
|
run-name: "agent-discussions-bot [${{ github.ref_name }}]"
|
|
10
|
-
concurrency:
|
|
10
|
+
concurrency:
|
|
11
|
+
group: agentic-lib-bot-${{ github.event.discussion.node_id || github.run_id }}
|
|
12
|
+
cancel-in-progress: false
|
|
11
13
|
|
|
12
14
|
on:
|
|
13
15
|
discussion:
|
|
@@ -24,6 +26,11 @@ on:
|
|
|
24
26
|
- cron: "7 12 */28 * *" # schedule-1: every 28 days
|
|
25
27
|
workflow_dispatch:
|
|
26
28
|
inputs:
|
|
29
|
+
discussion-url:
|
|
30
|
+
description: "Discussion URL to respond to (required for supervisor-dispatched runs)"
|
|
31
|
+
type: string
|
|
32
|
+
required: false
|
|
33
|
+
default: ""
|
|
27
34
|
model:
|
|
28
35
|
description: "Copilot SDK model to use"
|
|
29
36
|
type: choice
|
|
@@ -76,8 +83,8 @@ jobs:
|
|
|
76
83
|
uses: actions/github-script@v7
|
|
77
84
|
with:
|
|
78
85
|
script: |
|
|
79
|
-
let url = '';
|
|
80
|
-
if (context.payload.discussion) {
|
|
86
|
+
let url = '${{ inputs.discussion-url }}' || '';
|
|
87
|
+
if (!url && context.payload.discussion) {
|
|
81
88
|
url = context.payload.discussion.html_url;
|
|
82
89
|
}
|
|
83
90
|
core.setOutput('url', url);
|