Skip to content

Commit f2bde61

Browse files
committed
Fix workflows
2 parents 7b86263 + 05de4f6 commit f2bde61

7 files changed

Lines changed: 280 additions & 75 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
updates:
33
# Enable version updates for GitHub Actions
4-
- package-ecosystem: "github-actions"
4+
- package-ecosystem: "github-actions" # See documentation for possible values
55
directory: "/" # Location of package manifests
66
schedule:
77
interval: "weekly"

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ jobs:
128128
echo "### ☁️ Upload Status" >> $env:GITHUB_STEP_SUMMARY
129129
echo "" >> $env:GITHUB_STEP_SUMMARY
130130
echo "All artifacts successfully uploaded to GitHub Actions:" >> $env:GITHUB_STEP_SUMMARY
131-
echo "- ✅ \`cmder.zip\`" >> $env:GITHUB_STEP_SUMMARY
132-
echo "- ✅ \`cmder.7z\`" >> $env:GITHUB_STEP_SUMMARY
133-
echo "- ✅ \`cmder_mini.zip\`" >> $env:GITHUB_STEP_SUMMARY
134-
echo "- ✅ \`hashes.txt\`" >> $env:GITHUB_STEP_SUMMARY
131+
echo '- ✅ `cmder.zip`' >> $env:GITHUB_STEP_SUMMARY
132+
echo '- ✅ `cmder.7z`' >> $env:GITHUB_STEP_SUMMARY
133+
echo '- ✅ `cmder_mini.zip`' >> $env:GITHUB_STEP_SUMMARY
134+
echo '- ✅ `hashes.txt`' >> $env:GITHUB_STEP_SUMMARY
135135
echo "" >> $env:GITHUB_STEP_SUMMARY
136136
137137
- name: Create Release

.github/workflows/codeql.yml

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,20 @@ jobs:
5050
- name: Summary - CodeQL analysis started
5151
shell: pwsh
5252
run: |
53-
echo "## 🔒 CodeQL Security Analysis - Workflow Summary" >> $env:GITHUB_STEP_SUMMARY
54-
echo "" >> $env:GITHUB_STEP_SUMMARY
55-
echo "### Analysis Configuration" >> $env:GITHUB_STEP_SUMMARY
56-
echo "" >> $env:GITHUB_STEP_SUMMARY
57-
echo "| Property | Value |" >> $env:GITHUB_STEP_SUMMARY
58-
echo "| --- | --- |" >> $env:GITHUB_STEP_SUMMARY
59-
echo "| Repository | \`${{ github.repository }}\` |" >> $env:GITHUB_STEP_SUMMARY
60-
echo "| Branch | \`${{ github.ref_name }}\` |" >> $env:GITHUB_STEP_SUMMARY
61-
echo "| Language | \`${{ matrix.language }}\` |" >> $env:GITHUB_STEP_SUMMARY
62-
echo "| Commit | \`${{ github.sha }}\` |" >> $env:GITHUB_STEP_SUMMARY
63-
echo "" >> $env:GITHUB_STEP_SUMMARY
53+
$summary = @"
54+
## 🔒 CodeQL Security Analysis - Workflow Summary
55+
56+
### Analysis Configuration
57+
58+
| Property | Value |
59+
| --- | --- |
60+
| Repository | `${{ github.repository }}` |
61+
| Branch | `${{ github.ref_name }}` |
62+
| Language | `${{ matrix.language }}` |
63+
| Commit | `${{ github.sha }}` |
64+
65+
"@
66+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
6467
6568
# Initializes the CodeQL tools for scanning.
6669
- name: Initialize CodeQL
@@ -86,10 +89,14 @@ jobs:
8689
if: success()
8790
shell: pwsh
8891
run: |
89-
echo "### ✅ Build Completed" >> $env:GITHUB_STEP_SUMMARY
90-
echo "" >> $env:GITHUB_STEP_SUMMARY
91-
echo "Cmder launcher built successfully for CodeQL analysis." >> $env:GITHUB_STEP_SUMMARY
92-
echo "" >> $env:GITHUB_STEP_SUMMARY
92+
$summary = @"
93+
### ✅ Build Completed
94+
95+
Cmder launcher built successfully for CodeQL analysis.
96+
97+
"@
98+
99+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
93100

94101
- name: Perform CodeQL Analysis
95102
uses: github/codeql-action/analyze@v4
@@ -100,12 +107,14 @@ jobs:
100107
if: success()
101108
shell: pwsh
102109
run: |
103-
@"
104-
### 🔍 CodeQL Analysis Results
105-
106-
✅ CodeQL security analysis completed successfully.
107-
108-
**Language analyzed:** ``${{ matrix.language }}``
109-
110-
> Check the Security tab for detailed findings and recommendations.
111-
"@ | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
110+
$summary = @(
111+
### 🔍 CodeQL Analysis Results
112+
113+
✅ CodeQL security analysis completed successfully.
114+
115+
**Language analyzed:** `${{ matrix.language }}`
116+
117+
> Check the Security tab for detailed findings and recommendations.
118+
"@
119+
120+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939

4040
steps:
4141
- uses: actions/checkout@v6
42+
with:
43+
fetch-depth: 0
4244

4345
- name: Summary - Test execution started
4446
shell: pwsh

.github/workflows/vendor.yml

Lines changed: 54 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ jobs:
3131
- name: Summary - Workflow started
3232
shell: pwsh
3333
run: |
34-
echo "## 📦 Vendor Update - Workflow Summary" >> $env:GITHUB_STEP_SUMMARY
35-
echo "" >> $env:GITHUB_STEP_SUMMARY
36-
echo "🔍 Checking for vendor dependency updates..." >> $env:GITHUB_STEP_SUMMARY
37-
echo "" >> $env:GITHUB_STEP_SUMMARY
34+
$summary = @"
35+
## 📦 Update Vendor - Workflow Summary
36+
37+
🔍 Checking for vendor dependency updates...
38+
39+
"@
40+
41+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
3842

3943
- id: make-changes
4044
name: Checking for updates
@@ -156,33 +160,38 @@ jobs:
156160
- name: Summary - Update check results
157161
shell: pwsh
158162
run: |
159-
$count = $env:COUNT_UPDATED
163+
$count = [int]$env:COUNT_UPDATED
164+
160165
if ($count -eq 0) {
161-
echo "### ✅ No Updates Available" >> $env:GITHUB_STEP_SUMMARY
162-
echo "" >> $env:GITHUB_STEP_SUMMARY
163-
echo "All vendor dependencies are up to date! 🎉" >> $env:GITHUB_STEP_SUMMARY
166+
$summary = @"
167+
### ✅ No Updates Available
168+
169+
All vendor dependencies are up to date! 🎉
170+
"@
164171
} else {
165172
$word = if ($count -eq 1) { 'dependency' } else { 'dependencies' }
166-
echo "### 🔄 Updates Found" >> $env:GITHUB_STEP_SUMMARY
167-
echo "" >> $env:GITHUB_STEP_SUMMARY
168-
if ($count -eq 1) {
169-
echo "📦 **$env:SINGLE_DEP_NAME** updated from \`$env:SINGLE_DEP_OLD_VERSION\` to \`$env:SINGLE_DEP_NEW_VERSION\`" >> $env:GITHUB_STEP_SUMMARY
170-
} else {
171-
echo "📦 **$count** vendor $word updated:" >> $env:GITHUB_STEP_SUMMARY
172-
}
173-
echo "" >> $env:GITHUB_STEP_SUMMARY
174-
echo "$env:UPDATE_MESSAGE" >> $env:GITHUB_STEP_SUMMARY
175-
echo "" >> $env:GITHUB_STEP_SUMMARY
173+
$summary = @"
174+
### 🔄 Updates Found
176175
177-
# Check if we can auto-merge (only minor/patch changes)
178-
$hasBreaking = $env:HAS_BREAKING_CHANGES -eq 'True'
179-
if ($hasBreaking) {
180-
echo "> ⚠️ **Note:** This update contains major version changes that may include breaking changes." >> $env:GITHUB_STEP_SUMMARY
181-
} else {
182-
echo "> ℹ️ **Note:** This update only contains minor or patch changes." >> $env:GITHUB_STEP_SUMMARY
183-
}
176+
📦 **$env:SINGLE_DEP_NAME** updated from ``$env:SINGLE_DEP_OLD_VERSION`` to ``$env:SINGLE_DEP_NEW_VERSION``
177+
178+
📦 **$count** vendor $word updated:
179+
180+
"@
184181
}
185182
183+
$summary += "$env:UPDATE_MESSAGE"
184+
185+
# Check if we can auto-merge (only minor/patch changes)
186+
$hasBreaking = $env:HAS_BREAKING_CHANGES -eq 'True'
187+
if ($hasBreaking) {
188+
$summary += "> ⚠️ **Note:** This update contains major version changes that may include breaking changes."
189+
} else {
190+
$summary += "> ℹ️ **Note:** This update only contains minor or patch changes."
191+
}
192+
193+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
194+
186195
- name: Auto-merge minor updates
187196
if: env.COUNT_UPDATED > 0 && env.HAS_BREAKING_CHANGES != 'True'
188197
shell: pwsh
@@ -252,18 +261,26 @@ jobs:
252261
if: env.COUNT_UPDATED > 0 && (env.HAS_BREAKING_CHANGES == 'True' || env.AUTO_MERGED == 'false')
253262
shell: pwsh
254263
run: |
255-
echo "### 🎉 Pull Request Created" >> $env:GITHUB_STEP_SUMMARY
256-
echo "" >> $env:GITHUB_STEP_SUMMARY
257-
echo "A pull request has been created to update the vendor dependencies." >> $env:GITHUB_STEP_SUMMARY
258-
echo "" >> $env:GITHUB_STEP_SUMMARY
259-
echo "**Branch:** \`update-vendor\`" >> $env:GITHUB_STEP_SUMMARY
260-
echo "" >> $env:GITHUB_STEP_SUMMARY
261-
echo "**Updated dependencies:** $env:LIST_UPDATED" >> $env:GITHUB_STEP_SUMMARY
262-
echo "" >> $env:GITHUB_STEP_SUMMARY
264+
$summary = @"
265+
### 🎉 Pull Request Created
266+
267+
A pull request has been created to update the vendor dependencies.
268+
269+
**Branch:** `update-vendor`
270+
271+
$env:LIST_UPDATED -and "**Updated dependencies:** $env:LIST_UPDATED" -or "**Updated dependencies:**
272+
273+
"@
274+
263275
if ($env:HAS_BREAKING_CHANGES -eq 'True') {
264-
echo "> ⚠️ **Manual review required:** This update contains major version changes." >> $env:GITHUB_STEP_SUMMARY
276+
$summary += "> ⚠️ **Manual review required:** This update contains major version changes."
265277
} else {
266-
echo "> ℹ️ **Note:** Auto-merge failed, manual review required." >> $env:GITHUB_STEP_SUMMARY
278+
$summary += "> ℹ️ **Note:** Auto-merge failed, manual review required."
267279
}
268-
echo "" >> $env:GITHUB_STEP_SUMMARY
269-
echo "Please review and merge the pull request to apply the updates." >> $env:GITHUB_STEP_SUMMARY
280+
281+
$summary += @"
282+
> Please review and merge the pull request to apply the updates.
283+
284+
"@
285+
286+
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY

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)