mirror of
https://github.com/cmderdev/cmder.git
synced 2026-02-24 22:16:08 +08:00
fixes
This commit is contained in:
5
.github/dependabot.yml
vendored
5
.github/dependabot.yml
vendored
@@ -1,3 +1,8 @@
|
|||||||
|
# To get started with Dependabot version updates, you'll need to specify which
|
||||||
|
# package ecosystems to update and where the package manifests are located.
|
||||||
|
# Please see the documentation for all configuration options:
|
||||||
|
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
# Enable version updates for GitHub Actions
|
# Enable version updates for GitHub Actions
|
||||||
|
|||||||
16
.github/workflows/codeql.yml
vendored
16
.github/workflows/codeql.yml
vendored
@@ -57,14 +57,14 @@ jobs:
|
|||||||
|
|
||||||
| Property | Value |
|
| Property | Value |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| Repository | `${{ github.repository }}` |
|
| Repository | ``${{ github.repository }}`` |
|
||||||
| Branch | `${{ github.ref_name }}` |
|
| Branch | ``${{ github.ref_name }}`` |
|
||||||
| Language | `${{ matrix.language }}` |
|
| Language | ``${{ matrix.language }}`` |
|
||||||
| Commit | `${{ github.sha }}` |
|
| Commit | ``${{ github.sha }}`` |
|
||||||
|
|
||||||
"@
|
"@
|
||||||
|
|
||||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
|
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
|
|
||||||
"@
|
"@
|
||||||
|
|
||||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
|
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v4
|
uses: github/codeql-action/analyze@v4
|
||||||
@@ -113,9 +113,9 @@ jobs:
|
|||||||
|
|
||||||
✅ CodeQL security analysis completed successfully.
|
✅ CodeQL security analysis completed successfully.
|
||||||
|
|
||||||
**Language analyzed:** `${{ matrix.language }}`
|
**Language analyzed:** ``${{ matrix.language }}``
|
||||||
|
|
||||||
> Check the Security tab for detailed findings and recommendations.
|
> Check the Security tab for detailed findings and recommendations.
|
||||||
"@
|
"@
|
||||||
|
|
||||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
|
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||||
|
|||||||
62
.github/workflows/vendor.yml
vendored
62
.github/workflows/vendor.yml
vendored
@@ -31,14 +31,14 @@ jobs:
|
|||||||
- name: Summary - Workflow started
|
- name: Summary - Workflow started
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$summary = @"
|
$summary = @(
|
||||||
## 📦 Update Vendor - Workflow Summary
|
'## 📦 Update Vendor - Workflow Summary'
|
||||||
|
''
|
||||||
|
'🔍 Checking for vendor dependency updates...'
|
||||||
|
''
|
||||||
|
)
|
||||||
|
|
||||||
🔍 Checking for vendor dependency updates...
|
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||||
|
|
||||||
"@
|
|
||||||
|
|
||||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
|
|
||||||
|
|
||||||
- id: make-changes
|
- id: make-changes
|
||||||
name: Checking for updates
|
name: Checking for updates
|
||||||
@@ -163,21 +163,21 @@ jobs:
|
|||||||
$count = [int]$env:COUNT_UPDATED
|
$count = [int]$env:COUNT_UPDATED
|
||||||
|
|
||||||
if ($count -eq 0) {
|
if ($count -eq 0) {
|
||||||
$summary = @"
|
$summary = @(
|
||||||
### ✅ No Updates Available
|
'### ✅ No Updates Available'
|
||||||
|
''
|
||||||
All vendor dependencies are up to date! 🎉
|
'All vendor dependencies are up to date! 🎉'
|
||||||
"@
|
)
|
||||||
} else {
|
} else {
|
||||||
$word = if ($count -eq 1) { 'dependency' } else { 'dependencies' }
|
$word = if ($count -eq 1) { 'dependency' } else { 'dependencies' }
|
||||||
$summary = @"
|
$summary = @(
|
||||||
### 🔄 Updates Found
|
'### 🔄 Updates Found'
|
||||||
|
''
|
||||||
📦 **$env:SINGLE_DEP_NAME** updated from ``$env:SINGLE_DEP_OLD_VERSION`` to ``$env:SINGLE_DEP_NEW_VERSION``
|
"📦 **$env:SINGLE_DEP_NAME** updated from ``$env:SINGLE_DEP_OLD_VERSION`` to ``$env:SINGLE_DEP_NEW_VERSION``"
|
||||||
|
''
|
||||||
📦 **$count** vendor $word updated:
|
'📦 **$count** vendor $word updated:'
|
||||||
|
''
|
||||||
"@
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
$summary += "$env:UPDATE_MESSAGE"
|
$summary += "$env:UPDATE_MESSAGE"
|
||||||
@@ -261,16 +261,16 @@ jobs:
|
|||||||
if: env.COUNT_UPDATED > 0 && (env.HAS_BREAKING_CHANGES == 'True' || env.AUTO_MERGED == 'false')
|
if: env.COUNT_UPDATED > 0 && (env.HAS_BREAKING_CHANGES == 'True' || env.AUTO_MERGED == 'false')
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$summary = @"
|
$summary = @(
|
||||||
### 🎉 Pull Request Created
|
'### 🎉 Pull Request Created'
|
||||||
|
''
|
||||||
A pull request has been created to update the vendor dependencies.
|
'A pull request has been created to update the vendor dependencies.'
|
||||||
|
''
|
||||||
**Branch:** `update-vendor`
|
'**Branch:** `update-vendor`'
|
||||||
|
''
|
||||||
$env:LIST_UPDATED -and "**Updated dependencies:** $env:LIST_UPDATED" -or "**Updated dependencies:**
|
"$env:LIST_UPDATED -and "**Updated dependencies:** $env:LIST_UPDATED" -or "**Updated dependencies:**"
|
||||||
|
''
|
||||||
"@
|
)
|
||||||
|
|
||||||
if ($env:HAS_BREAKING_CHANGES -eq 'True') {
|
if ($env:HAS_BREAKING_CHANGES -eq 'True') {
|
||||||
$summary += "> ⚠️ **Manual review required:** This update contains major version changes."
|
$summary += "> ⚠️ **Manual review required:** This update contains major version changes."
|
||||||
@@ -283,4 +283,4 @@ jobs:
|
|||||||
|
|
||||||
"@
|
"@
|
||||||
|
|
||||||
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY
|
$summary | Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8
|
||||||
|
|||||||
Reference in New Issue
Block a user