Skip to content

Commit 5a568d1

Browse files
committed
Upgrade GitHub Actions to current versions
1 parent d2088e6 commit 5a568d1

File tree

6 files changed

+31
-28
lines changed

6 files changed

+31
-28
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ jobs:
2525
run: git config --global core.longpaths true
2626

2727
- name: Checkout
28-
uses: actions/checkout@v5
28+
uses: actions/checkout@v6.0.2
2929
with:
3030
submodules: recursive
3131

3232
- name: Setup Node.js
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@v6.3.0
3434
with:
3535
node-version: ${{ env.NODE_VERSION }}
3636

3737
- name: Setup .NET
38-
uses: actions/setup-dotnet@v4
38+
uses: actions/setup-dotnet@v5.2.0
3939
with:
4040
dotnet-version: ${{ env.DOTNET_VERSION }}
4141

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v5
27+
uses: actions/checkout@v6.0.2
2828

2929
- name: Initialize CodeQL
3030
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
3333

3434
- name: Setup .NET
35-
uses: actions/setup-dotnet@v4
35+
uses: actions/setup-dotnet@v5.2.0
3636
with:
3737
dotnet-version: '10.0.x'
3838

.github/workflows/gemini-cli-watch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository with submodules
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@v6.0.2
2424
with:
2525
submodules: recursive
2626
fetch-depth: 0
@@ -245,7 +245,7 @@ jobs:
245245
246246
- name: Create issue for Gemini CLI update
247247
if: steps.detect.outputs.has_update == 'true'
248-
uses: actions/github-script@v7
248+
uses: actions/github-script@v8
249249
env:
250250
CURRENT_SHA: ${{ steps.detect.outputs.current_sha }}
251251
LATEST_SHA: ${{ steps.detect.outputs.latest_sha }}

.github/workflows/real-integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ jobs:
2727
run: git config --global core.longpaths true
2828

2929
- name: Checkout
30-
uses: actions/checkout@v5
30+
uses: actions/checkout@v6.0.2
3131
with:
3232
submodules: recursive
3333

3434
- name: Setup Node.js
35-
uses: actions/setup-node@v4
35+
uses: actions/setup-node@v6.3.0
3636
with:
3737
node-version: ${{ env.NODE_VERSION }}
3838

3939
- name: Setup .NET
40-
uses: actions/setup-dotnet@v4
40+
uses: actions/setup-dotnet@v5.2.0
4141
with:
4242
dotnet-version: ${{ env.DOTNET_VERSION }}
4343

.github/workflows/release.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@v6.0.2
2424
with:
2525
submodules: recursive
2626

2727
- name: Setup .NET
28-
uses: actions/setup-dotnet@v4
28+
uses: actions/setup-dotnet@v5.2.0
2929
with:
3030
dotnet-version: ${{ env.DOTNET_VERSION }}
3131

3232
- name: Setup Node.js
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@v6.3.0
3434
with:
3535
node-version: ${{ env.NODE_VERSION }}
3636

@@ -94,7 +94,7 @@ jobs:
9494
test -f "./artifacts/ManagedCode.GeminiSharpSDK.Extensions.AgentFramework.$AGENT_FRAMEWORK_VERSION.nupkg"
9595
9696
- name: Upload artifacts
97-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@v7.0.0
9898
with:
9999
name: nuget-packages
100100
path: ./artifacts/*.nupkg
@@ -113,16 +113,16 @@ jobs:
113113

114114
steps:
115115
- name: Checkout
116-
uses: actions/checkout@v5
116+
uses: actions/checkout@v6.0.2
117117

118118
- name: Download artifacts
119-
uses: actions/download-artifact@v5
119+
uses: actions/download-artifact@v8.0.1
120120
with:
121121
name: nuget-packages
122122
path: ./artifacts
123123

124124
- name: Setup .NET
125-
uses: actions/setup-dotnet@v4
125+
uses: actions/setup-dotnet@v5.2.0
126126
with:
127127
dotnet-version: ${{ env.DOTNET_VERSION }}
128128

@@ -171,13 +171,13 @@ jobs:
171171

172172
steps:
173173
- name: Checkout
174-
uses: actions/checkout@v5
174+
uses: actions/checkout@v6.0.2
175175
with:
176176
fetch-depth: 0
177177
token: ${{ secrets.GITHUB_TOKEN }}
178178

179179
- name: Download artifacts
180-
uses: actions/download-artifact@v5
180+
uses: actions/download-artifact@v8.0.1
181181
with:
182182
name: nuget-packages
183183
path: ./artifacts
@@ -273,12 +273,14 @@ jobs:
273273
echo "*This release was automatically created by GitHub Actions*" >> release_notes.md
274274
275275
- name: Create GitHub Release
276-
uses: softprops/action-gh-release@v2
277-
with:
278-
tag_name: v${{ needs.publish-nuget.outputs.version }}
279-
name: v${{ needs.publish-nuget.outputs.version }}
280-
body_path: release_notes.md
281-
draft: false
282-
prerelease: false
283-
files: ./artifacts/*.nupkg
284-
token: ${{ secrets.GITHUB_TOKEN }}
276+
env:
277+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
278+
run: |
279+
TAG="v${{ needs.publish-nuget.outputs.version }}"
280+
if gh release view "$TAG" >/dev/null 2>&1; then
281+
echo "GitHub release $TAG already exists"
282+
else
283+
gh release create "$TAG" ./artifacts/*.nupkg \
284+
--title "$TAG" \
285+
--notes-file release_notes.md
286+
fi

docs/Features/release-and-sync-automation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Keep package quality and upstream Gemini CLI parity automatically verified throu
3636
- CI and Release workflows must execute full solution tests before smoke subsets, excluding auth-required tests with `-- --treenode-filter "/*/*/*/*[RequiresGeminiAuth!=true]"`.
3737
- CI, Release, and scheduled smoke workflows must install Gemini CLI in a way that remains resolvable by later `dotnet test` steps (for example by adding local `node_modules/.bin` to `PATH`).
3838
- Windows workflows that checkout recursive submodules must enable Git long paths before `actions/checkout`, otherwise upstream Gemini snapshot files can break checkout.
39+
- Workflow action refs must stay on current Node 24-capable upstream versions where available; when the latest upstream action still runs on Node 20, prefer an equivalent shell/`gh` implementation over keeping a deprecated JS action.
3940
- Gemini CLI smoke test workflow steps must run `GeminiCli_Smoke_*` via `GeminiSharpSDK.Tests` project scope to avoid false `zero tests ran` failures in non-smoke test assemblies.
4041
- Gemini CLI smoke validation must cover both `gemini --help` and headless `gemini --prompt ... --output-format stream-json`, proving root and non-interactive surfaces stay discoverable.
4142
- Release workflow must build/test before pack/publish.

0 commit comments

Comments
 (0)