Skip to content

Commit 596a692

Browse files
Merge branch 'IntegrationTestsFix' of https://github.com/cap-java/sdm into IntegrationTestsFix
2 parents e60554f + af63cc1 commit 596a692

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

‎.github/workflows/gemini_issues_review.yml‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
11
name: Gemini AI Issue Summarizer
22

33
on:
4-
# This workflow now triggers when a new issue is opened
4+
# Triggers when a new issue is opened or an existing issue body/title is edited
55
issues:
6-
types: [opened]
6+
types: [opened, edited]
77

88
jobs:
99
summarize:
10-
# Ensure the job only runs for new issues and not from the bot itself
11-
if: github.event.issue.author.login != 'github-actions[bot]'
10+
# Skip events triggered by the bot itself; for edits, only process body/title changes
11+
if: |
12+
github.actor != 'github-actions[bot]' &&
13+
(github.event.action == 'opened' ||
14+
(github.event.action == 'edited' && (github.event.changes.body != null || github.event.changes.title != null)))
1215
runs-on: ubuntu-latest
1316
permissions:
1417
contents: read
1518
issues: write
1619

1720
steps:
1821
- name: Checkout repository
19-
uses: actions/checkout@v6
22+
uses: actions/checkout@v4
2023

2124
- name: Set up Node.js
2225
uses: actions/setup-node@v4
2326
with:
2427
node-version: '20'
2528

29+
- name: Cache node modules
30+
uses: actions/cache@v4
31+
with:
32+
path: ~/.npm
33+
key: ${{ runner.os }}-gemini-issues-${{ hashFiles('.github/scripts/review.js') }}
34+
restore-keys: |
35+
${{ runner.os }}-gemini-issues-
36+
2637
- name: Install dependencies
27-
run: npm install @actions/github @google/generative-ai @octokit/core
38+
run: npm install @actions/github@5.1.1 @google/generative-ai @octokit/core
39+
#run: npm install @actions/github @google/generative-ai @octokit/core
40+
2841

2942
- name: Run Gemini Issue Summarizer Script
3043
env:

‎.github/workflows/multiTenancyDeployLocal.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Setup Node.js 🟢
4949
uses: actions/setup-node@v3
5050
with:
51-
node-version: '20'
51+
node-version: '20' # Ensure to use at least version 18
5252

5353
- name: Install MBT ⚙️
5454
run: |

0 commit comments

Comments
 (0)