Skip to content

Commit e71c767

Browse files
committed
Fixes and Cleanup
1 parent dc93fa5 commit e71c767

7 files changed

Lines changed: 242 additions & 38 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
version: 2
77
updates:
8+
# Enable version updates for GitHub Actions
89
- package-ecosystem: "github-actions" # See documentation for possible values
910
directory: "/" # Location of package manifests
1011
schedule:
1112
interval: "weekly"
13+
labels:
14+
- "👆 Dependencies"
15+
- "🔄️ GitHub Actions"

.github/workflows/build.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
$summary += "`n| ``$($vendor.name)`` | $($vendor.version) |"
9494
}
9595
}
96+
9697
$summary += "`n"
9798

9899
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
@@ -109,42 +110,44 @@ jobs:
109110
if: success()
110111
shell: pwsh
111112
run: |
112-
@"
113+
$summary = @"
113114

114115
---
115116

116117
### Build Status
117118

118119
✅ Cmder built successfully.
119120

120-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
121+
"@
122+
123+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
121124

122125
- name: Pack the built files
123126
shell: pwsh
124127
working-directory: scripts
125128
run: .\pack.ps1 -verbose
126129

127130
- name: Upload artifact (cmder.zip)
128-
uses: actions/upload-artifact@v5
131+
uses: actions/upload-artifact@v6
129132
with:
130133
path: build/cmder.zip
131134
name: cmder.zip
132135
if-no-files-found: error
133136

134137
- name: Upload artifact (cmder.7z)
135-
uses: actions/upload-artifact@v5
138+
uses: actions/upload-artifact@v6
136139
with:
137140
path: build/cmder.7z
138141
name: cmder.7z
139142

140143
- name: Upload artifact (cmder_mini.zip)
141-
uses: actions/upload-artifact@v5
144+
uses: actions/upload-artifact@v6
142145
with:
143146
path: build/cmder_mini.zip
144147
name: cmder_mini.zip
145148

146149
- name: Upload artifact (hashes.txt)
147-
uses: actions/upload-artifact@v5
150+
uses: actions/upload-artifact@v6
148151
with:
149152
path: build/hashes.txt
150153
name: hashes.txt
@@ -245,7 +248,7 @@ jobs:
245248
if: startsWith(github.ref, 'refs/tags/')
246249
shell: pwsh
247250
run: |
248-
@"
251+
$summary = @"
249252

250253
---
251254

@@ -259,4 +262,6 @@ jobs:
259262
- File hashes (``hashes.txt``)
260263

261264
> ⚠️ Release is in **draft** mode. Please review and publish manually.
262-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
265+
"@
266+
267+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8

.github/workflows/codeql.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Summary - CodeQL analysis started
5151
shell: pwsh
5252
run: |
53-
@"
53+
$summary = @"
5454
## 🔒 CodeQL Security Analysis - Workflow Summary
5555

5656
### Analysis Configuration
@@ -62,7 +62,9 @@ jobs:
6262
| Language | ``${{ matrix.language }}`` |
6363
| Commit | ``${{ github.sha }}`` |
6464

65-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
65+
"@
66+
67+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
6668

6769
# Initializes the CodeQL tools for scanning.
6870
- name: Initialize CodeQL
@@ -88,12 +90,14 @@ jobs:
8890
if: success()
8991
shell: pwsh
9092
run: |
91-
@"
93+
$summary = @"
9294
### ✅ Build Completed
9395

9496
Cmder launcher built successfully for CodeQL analysis.
9597

96-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
98+
"@
99+
100+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
97101

98102
- name: Perform CodeQL Analysis
99103
uses: github/codeql-action/analyze@v4
@@ -104,12 +108,14 @@ jobs:
104108
if: success()
105109
shell: pwsh
106110
run: |
107-
@"
111+
$summary = @"
108112
### 🔍 CodeQL Analysis Results
109113

110114
✅ CodeQL security analysis completed successfully.
111115

112116
**Language analyzed:** ``${{ matrix.language }}``
113117

114118
> Check the Security tab for detailed findings and recommendations.
115-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
119+
"@
120+
121+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8

.github/workflows/tests.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
. scripts/utils.ps1
4848
$cmderVersion = Get-VersionStr
4949

50-
@"
50+
$summary = @"
5151
## ✅ Run Tests - Workflow Summary
5252

5353
### Test Environment
@@ -61,7 +61,9 @@ jobs:
6161
| PowerShell Version | **$($PSVersionTable.PSVersion)** |
6262
| Event | ``${{ github.event_name }}`` |
6363

64-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
64+
"@
65+
66+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
6567

6668
- name: Initialize vendors
6769
shell: pwsh
@@ -106,12 +108,14 @@ jobs:
106108
if: success()
107109
shell: pwsh
108110
run: |
109-
@"
111+
$summary = @"
110112
### 📋 Test Results
111113

112114
| Test | Status | Duration |
113115
| --- | --- | --- |
114-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
116+
"@
117+
118+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
115119

116120
- name: Testing Clink Shell
117121
id: test-clink
@@ -148,7 +152,7 @@ jobs:
148152
if: success()
149153
shell: pwsh
150154
run: |
151-
@"
155+
$summary = @"
152156

153157
### ✅ All Tests Completed
154158

@@ -158,4 +162,6 @@ jobs:
158162
- ✅ Clink shell environment (Windows cmd.exe with Clink)
159163
- ✅ PowerShell environment (with Cmder profile)
160164
- ✅ Bash environment (Git Bash integration)
161-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
165+
"@
166+
167+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8

.github/workflows/vendor.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ jobs:
3131
- name: Summary - Workflow started
3232
shell: pwsh
3333
run: |
34-
@"
34+
$summary = @"
3535
## 📦 Update Vendor - Workflow Summary
3636

3737
Checking for vendor dependency updates...
3838

39-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
39+
"@
40+
41+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
4042

4143
- id: make-changes
4244
name: Checking for updates
@@ -66,22 +68,24 @@ jobs:
6668
run: |
6769
$count = $env:COUNT_UPDATED
6870
if ($count -eq 0) {
69-
@"
71+
$summary = @"
7072
### ✅ No Updates Available
7173

7274
All vendor dependencies are up to date.
73-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
75+
"@
7476
} else {
7577
$word = if ($count -eq 1) { 'dependency' } else { 'dependencies' }
76-
@"
78+
$summary = @"
7779
### 🔄 Updates Found
7880

7981
**$count** vendor $word updated:
8082

8183
$env:UPDATE_MESSAGE
8284

83-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
85+
"@
8486
}
87+
88+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
8589

8690
- uses: peter-evans/create-pull-request@v7
8791
if: env.COUNT_UPDATED > 0
@@ -100,14 +104,16 @@ jobs:
100104
if: env.COUNT_UPDATED > 0
101105
shell: pwsh
102106
run: |
103-
@"
107+
$Summary = @"
104108
### 🎉 Pull Request Created
105-
109+
106110
A pull request has been created to update the vendor dependencies.
107111

108112
**Branch:** ``update-vendor``
109113

110114
**Updated dependencies:** $env:LIST_UPDATED
111115

112116
> Please review and merge the pull request to apply the updates.
113-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
117+
"@
118+
119+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8

CHANGELOG.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,84 @@
11
# Change Log
22

3+
## [1.3.25](https://github.com/cmderdev/cmder/tree/v1.3.25) (2024-05-31)
4+
5+
### Changes
6+
7+
- Component Updates
8+
- Update Git for Windows to 2.45.1.windows.1.
9+
- Update ConEmu to 24.05.31.
10+
- Clink 1.6.14.
11+
- clink-completions 0.5.2.
12+
13+
- Add `SECURITY.md` and refresh CI workflows and actions.
14+
- Enable `match.expand_envvars` and improve git diagnostics for improper versions.
15+
16+
### Fixes
17+
18+
- Fix #2944.
19+
- Fix script error when the working directory contains `%`.
20+
- Remove environment refresh race condition.
21+
22+
## [1.3.24](https://github.com/cmderdev/cmder/tree/v1.3.24) (2023-07-24)
23+
24+
### Changes
25+
26+
- Update `build.yml` workflow.
27+
28+
## [1.3.23](https://github.com/cmderdev/cmder/tree/v1.3.23) (2023-07-24)
29+
30+
### Changes
31+
32+
- Update ConEmu (conemu-maximus5) to 23.07.24.
33+
34+
## [1.3.22](https://github.com/cmderdev/cmder/tree/v1.3.22) (2023-07-24)
35+
36+
### Changes
37+
38+
- Handle Clink injction differently in `init.bat`.
39+
- Changes to `clink_settings.lua.default`.
40+
- Do not add commands to Clink Command Line History that begin with whitespace as a default.
41+
- This can be changed to the old behavior by setting `history_ignore_space` to `0` in `config\clink_settings.lua`.
42+
- `history.max_lines` is now defaults to `25000` instead of `10000`.
43+
- This can be changed back to the old behavior by setting `history_max_lines` to `10000` in `config\clink_settings.lua`.
44+
- `history.shared` now defaults to `False` instead of `True`.
45+
- The previous default of `True` was causing issues with some users when using Cmder in multiple sessions.
46+
- This can be changed back to the old behavior by setting `history_shared` to `1` in `config\clink_settings.lua`.
47+
48+
- Component Updates
49+
- Git for Windows to 2.41.0.windows.3
50+
- Clink to 1.5.1
51+
- ConEmu to 23.07.23
52+
- clink-completions to 0.4.10
53+
54+
- Remove AppVeyor configuration and add CodeQL scanning and Dependabot updates.
55+
56+
### Fixes
57+
58+
- Fix `/task "<taskName>"` handling.
59+
- Skip clink injection when initialization fails fatally.
60+
- Fix errors when git/svn/hg are not installed and in profile.d PowerShell scripts.
61+
62+
## [1.3.21](https://github.com/cmderdev/cmder/tree/v1.3.21) (2022-12-19)
63+
64+
### Fixes
65+
66+
- Fix #2789.
67+
- Fix Git Bash `GIT_INSTALL_ROOT` handling.
68+
69+
### Changes
70+
71+
- Refactor `clink.lua` to speed up the prompt.
72+
- Refactor and Cleanup `init.bat` and related scripts.
73+
- Refactor and Cleanup `profile.ps1` and related scripts.
74+
- Remove handling of `clink` and `tcc` incompatibility.
75+
- Update ConEmu to mitigate CVE-2022-46387.
76+
- Update Git for Windows to 2.39.0.windows.1 and Clink to 1.4.4.
77+
78+
### Adds
79+
80+
- Add `show_warning` function to `vendor\lib\lib_console.cmd` for showing warning messages in yellow.
81+
382
## [1.3.20](https://github.com/cmderdev/cmder/tree/v1.3.20) (2022-03-18)
483

584
### Changes

0 commit comments

Comments
 (0)