@xn-intenton-z2a/agentic-lib 7.1.56 → 7.1.57
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
CHANGED
|
@@ -96,7 +96,7 @@ async function run() {
|
|
|
96
96
|
if (result.tokensUsed) core.setOutput("tokens-used", String(result.tokensUsed));
|
|
97
97
|
if (result.model) core.setOutput("model", result.model);
|
|
98
98
|
|
|
99
|
-
// Log to intentïon.md
|
|
99
|
+
// Log to intentïon.md (commit-if-changed excludes this on non-default branches)
|
|
100
100
|
const intentionFilepath = config.intentionBot?.intentionFilepath;
|
|
101
101
|
if (intentionFilepath) {
|
|
102
102
|
logActivity({
|
|
@@ -26,6 +26,11 @@ runs:
|
|
|
26
26
|
git config --local user.email 'action@github.com'
|
|
27
27
|
git config --local user.name 'GitHub Actions[bot]'
|
|
28
28
|
git add -A
|
|
29
|
+
# Unstage log files on non-default branches to avoid merge conflicts
|
|
30
|
+
REF="${{ inputs.push-ref }}"
|
|
31
|
+
if [ -n "$REF" ] && [ "$REF" != "main" ] && [ "$REF" != "master" ]; then
|
|
32
|
+
git reset HEAD -- 'intentïon.md' 'intention.md' 2>/dev/null || true
|
|
33
|
+
fi
|
|
29
34
|
if git diff --cached --quiet; then
|
|
30
35
|
echo "No changes to commit"
|
|
31
36
|
elif git diff --cached --name-only | grep -qvE '(intentïon\.md|intention\.md)$'; then
|