Skip to content

Commit f7f7ec7

Browse files
authored
Merge pull request #601 from LogExperts/nuget_license_packaged_components_fix
pr for auto generated items
2 parents 608559c + 5e4c692 commit f7f7ec7

2 files changed

Lines changed: 48 additions & 23 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
pull-requests: write
1011

1112
jobs:
1213
release:
@@ -47,8 +48,10 @@ jobs:
4748
}
4849
Set-Content -Path "src/Solution Items/usedComponents.json" -Value $output -Encoding UTF8
4950
50-
- name: Commit generated files to Development
51+
- name: Open PR with generated files
5152
shell: pwsh
53+
env:
54+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5255
run: |
5356
git config user.name "github-actions[bot]"
5457
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -59,20 +62,42 @@ jobs:
5962
Copy-Item "src/Solution Items/usedComponents.json" $tempComponents
6063
Copy-Item "src/PluginRegistry/PluginHashGenerator.Generated.cs" $tempHashes
6164
62-
# Switch to Development and apply both updates
65+
# Development is PR-protected, so apply the updates on a fresh branch off Development
6366
git fetch origin Development
64-
git checkout Development
67+
$branch = "chore/generated-files-${{ github.ref_name }}"
68+
git checkout -B $branch origin/Development
69+
6570
Copy-Item $tempComponents "src/Solution Items/usedComponents.json"
6671
Copy-Item $tempHashes "src/PluginRegistry/PluginHashGenerator.Generated.cs"
6772
6873
git add "src/Solution Items/usedComponents.json"
6974
git add "src/PluginRegistry/PluginHashGenerator.Generated.cs"
75+
7076
git diff --staged --quiet
71-
if ($LASTEXITCODE -ne 0) {
72-
git commit -m "chore: update plugin hashes and usedComponents.json for ${{ github.ref_name }} [skip ci]"
73-
git push origin Development
77+
if ($LASTEXITCODE -eq 0) {
78+
Write-Host "No changes to commit; skipping PR."
79+
exit 0
80+
}
81+
82+
git commit -m "chore: update plugin hashes and usedComponents.json for ${{ github.ref_name }} [skip ci]"
83+
# Force-push so re-running the release for the same tag updates the existing branch
84+
git push --force origin $branch
85+
86+
# Create the PR if one does not already exist for this branch
87+
$existing = gh pr list --head $branch --base Development --state open --json number --jq '.[0].number'
88+
if ([string]::IsNullOrWhiteSpace($existing)) {
89+
gh pr create --base Development --head $branch `
90+
--title "chore: update generated files for ${{ github.ref_name }} [skip ci]" `
91+
--body "Automated update of plugin hashes and ``usedComponents.json`` for release ${{ github.ref_name }}."
7492
} else {
75-
Write-Host "No changes to commit"
93+
Write-Host "PR #$existing already exists for $branch"
94+
}
95+
96+
# Best-effort auto-merge. Will complete once branch rules are satisfied;
97+
# if the ruleset requires a manual review, merge the PR by hand.
98+
gh pr merge $branch --auto --squash --delete-branch 2>&1 | Write-Host
99+
if ($LASTEXITCODE -ne 0) {
100+
Write-Host "::warning::Could not enable auto-merge for $branch; merge the PR manually."
76101
}
77102
78103
- name: Create GitHub Release

src/PluginRegistry/PluginHashGenerator.Generated.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,35 @@ public static partial class PluginValidator
1010
{
1111
/// <summary>
1212
/// Gets pre-calculated SHA256 hashes for built-in plugins.
13-
/// Generated: 2026-06-08 18:22:43 UTC
13+
/// Generated: 2026-06-09 06:55:04 UTC
1414
/// Configuration: Release
1515
/// Plugin count: 21
1616
/// </summary>
1717
public static Dictionary<string, string> GetBuiltInPluginHashes()
1818
{
1919
return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
2020
{
21-
["AutoColumnizer.dll"] = "FF45688846E19EDDF7244BD9D69254926E32DD5A79730018160696C9F9B5B735",
21+
["AutoColumnizer.dll"] = "3D6748C5E935505FFBFE24830208B11FAACF4EDCD672FBEABA4DD239B05D927A",
2222
["BouncyCastle.Cryptography.dll"] = "E5EEAF6D263C493619982FD3638E6135077311D08C961E1FE128F9107D29EBC6",
2323
["BouncyCastle.Cryptography.dll (x86)"] = "E5EEAF6D263C493619982FD3638E6135077311D08C961E1FE128F9107D29EBC6",
24-
["CsvColumnizer.dll"] = "3865D9280E673C03185B2B39053708DD6D782D97C5292AF4DD123AFA19531CD3",
25-
["CsvColumnizer.dll (x86)"] = "3865D9280E673C03185B2B39053708DD6D782D97C5292AF4DD123AFA19531CD3",
26-
["DefaultPlugins.dll"] = "36C050D6380D6F7B9403D43AACFA060F542D225E8C6B027B2E4F3CB18C5E298B",
27-
["FlashIconHighlighter.dll"] = "3A02E81476958DA1C411C8A2425A6482A55C05CADDFEAE60E7E4B282EA8CDBDF",
28-
["GlassfishColumnizer.dll"] = "135C0D23AB6A44376B01AB3FB19A2EADDDEBC6EDFDEDBA6682F30C57D988DC36",
29-
["JsonColumnizer.dll"] = "6270BE7D27EE4A5AB5AB1D9967ED97F3EC91B553C7D3A5968350933AB892F772",
30-
["JsonCompactColumnizer.dll"] = "8E5F12FE7BD86DDC9B3B0B1D3C04B49AD0394C81A9F899684A5F16532A5B0A35",
31-
["Log4jXmlColumnizer.dll"] = "3C4806DBD51DA3CECF152EB19C0A267DC0F8B977DF9457DAEEFA1F0A099525ED",
32-
["LogExpert.Resources.dll"] = "2D1743296A62E8BB1089635043A46A036AAD45E92E981C77ECA3373E3D9CCB5B",
24+
["CsvColumnizer.dll"] = "D5435B1886C4FA665A59FB647CE488C092CD2BF0587BB219B3A623C656BA8BF6",
25+
["CsvColumnizer.dll (x86)"] = "D5435B1886C4FA665A59FB647CE488C092CD2BF0587BB219B3A623C656BA8BF6",
26+
["DefaultPlugins.dll"] = "675EACAA0B1700FC6163ED29058124553DF9D6E935020CF04B38DAA9F33C279C",
27+
["FlashIconHighlighter.dll"] = "47605D179B3646F81BF44E8626251CDD30752C0535293AF4C4AA89A1CAF76B06",
28+
["GlassfishColumnizer.dll"] = "1C30B9D350C46B33A76C96C88DA4B9DCF2B1474BB1ACD92461878365F704A2EC",
29+
["JsonColumnizer.dll"] = "27F5ED050CEDBC1BD72250DD7C9FC330DB32825FE04FB9C899376BF45F347D92",
30+
["JsonCompactColumnizer.dll"] = "08F189DE85381709A10DD506DA2DC1F4D9885C68AD0A63799557166295CAD590",
31+
["Log4jXmlColumnizer.dll"] = "D21498D4B727AA8F2DAF59CD470AEEB11603FF64936E8AB11EDD92A1370BC681",
32+
["LogExpert.Resources.dll"] = "C8390BB994FACB178D34EC2023F8862F685489549F52726FD9E742B6497B7781",
3333
["Microsoft.Extensions.DependencyInjection.Abstractions.dll"] = "67FA4325000DB017DC0C35829B416F024F042D24EFB868BCF17A895EE6500A93",
3434
["Microsoft.Extensions.DependencyInjection.Abstractions.dll (x86)"] = "67FA4325000DB017DC0C35829B416F024F042D24EFB868BCF17A895EE6500A93",
3535
["Microsoft.Extensions.Logging.Abstractions.dll"] = "BB853130F5AFAF335BE7858D661F8212EC653835100F5A4E3AA2C66A4D4F685D",
3636
["Microsoft.Extensions.Logging.Abstractions.dll (x86)"] = "BB853130F5AFAF335BE7858D661F8212EC653835100F5A4E3AA2C66A4D4F685D",
37-
["RegexColumnizer.dll"] = "082BF04B54570B54F4BCF323338174F5818ED1A0992F56E6D7B367D36BAD2D57",
38-
["SftpFileSystem.dll"] = "5E8378F4FB45D51A635B471F743326F40199AB70FBDB8D2527F8D0A00C33AC78",
39-
["SftpFileSystem.dll (x86)"] = "9F2C46E0C878EE92BBA225A859872A7BE3E9F6584931DE45FC087192945D41F4",
40-
["SftpFileSystem.Resources.dll"] = "394C36CE8D4CFD7735E200FEF7ADC6C0F133AD94221B72AE7977600ABB25AA4B",
41-
["SftpFileSystem.Resources.dll (x86)"] = "394C36CE8D4CFD7735E200FEF7ADC6C0F133AD94221B72AE7977600ABB25AA4B",
37+
["RegexColumnizer.dll"] = "76A856BE58511F40B5E89D7F100AA7843AC62CD380717F924CCFDC234375BDAD",
38+
["SftpFileSystem.dll"] = "73D71AF4831468722C327DE246879343B9F95E4BA931B07F03A4B60C70B4A2A2",
39+
["SftpFileSystem.dll (x86)"] = "107BD9DF13EB1C0FB7F8B4C1B0D77B79A62A804FEA5F656FFADEBCDE3FFD4E5B",
40+
["SftpFileSystem.Resources.dll"] = "12539CBB43138C4D1AF4FFFC0D2D6370B6969E358DF9A03FD29720CA18D34287",
41+
["SftpFileSystem.Resources.dll (x86)"] = "12539CBB43138C4D1AF4FFFC0D2D6370B6969E358DF9A03FD29720CA18D34287",
4242

4343
};
4444
}

0 commit comments

Comments
 (0)