Skip to content

Commit 00b63b2

Browse files
authored
Merge pull request #604 from LogExperts/automatic_release
add app for auto release
2 parents 9def5a3 + 566103b commit 00b63b2

2 files changed

Lines changed: 35 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,20 @@ jobs:
4848
}
4949
Set-Content -Path "src/Solution Items/usedComponents.json" -Value $output -Encoding UTF8
5050
51+
# Mint a short-lived token for the dedicated GitHub App. The App is on the Development
52+
# ruleset's bypass list, so it (and only it) can merge the chore PR without an approval.
53+
# Minted here, right before use, so its ~1h lifetime is not consumed by the build.
54+
- name: Generate GitHub App token
55+
id: app-token
56+
uses: actions/create-github-app-token@v1
57+
with:
58+
app-id: ${{ secrets.RELEASE_APP_ID }}
59+
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
60+
5161
- name: Open PR with generated files
5262
shell: pwsh
5363
env:
54-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
5565
run: |
5666
git config user.name "github-actions[bot]"
5767
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -93,13 +103,17 @@ jobs:
93103
Write-Host "PR #$existing already exists for $branch"
94104
}
95105
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
106+
# Immediate squash-merge as the App. --admin merges despite the pending-review rule;
107+
# the App is allowed to because it is on the ruleset bypass list. No repo-wide
108+
# auto-merge setting is involved.
109+
gh pr merge $branch --squash --admin --delete-branch 2>&1 | Write-Host
99110
if ($LASTEXITCODE -ne 0) {
100-
Write-Host "::warning::Could not enable auto-merge for $branch; merge the PR manually."
111+
Write-Host "::warning::Could not merge $branch automatically; merge the PR manually."
101112
}
102113
114+
# This PR is bookkeeping only — never fail the release job over it.
115+
exit 0
116+
103117
- name: Create GitHub Release
104118
uses: softprops/action-gh-release@v2
105119
with:

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-09 13:03:15 UTC
13+
/// Generated: 2026-06-10 07:27:42 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"] = "780F403272D7C79E0C799616FFEFE1570C303D386BB7D34E2B297E095D1066A2",
21+
["AutoColumnizer.dll"] = "CE45A106692DCA7F3634D6886816460345AFEB83F1558DFC01B996AF9B454A8F",
2222
["BouncyCastle.Cryptography.dll"] = "E5EEAF6D263C493619982FD3638E6135077311D08C961E1FE128F9107D29EBC6",
2323
["BouncyCastle.Cryptography.dll (x86)"] = "E5EEAF6D263C493619982FD3638E6135077311D08C961E1FE128F9107D29EBC6",
24-
["CsvColumnizer.dll"] = "E6120973F204B4512E248D104D760E507C1AC494E3F66BF9F4C88B94C11169D1",
25-
["CsvColumnizer.dll (x86)"] = "E6120973F204B4512E248D104D760E507C1AC494E3F66BF9F4C88B94C11169D1",
26-
["DefaultPlugins.dll"] = "EC05656FA992A46D98BCB04B19153F444B8EEFEA6522CCD9F85A0A0FACA42DA3",
27-
["FlashIconHighlighter.dll"] = "7E354E0048D68188F99DC721D9B92C75651DAD733A363A536322B1811C739A1A",
28-
["GlassfishColumnizer.dll"] = "6D02D6E30BFD11FC0964E6EAAA159EB886D293F9299E014EAAAE42F19BC3FE44",
29-
["JsonColumnizer.dll"] = "C6711DBECE8EC611B9B24B576D9B07F9D49C933954F376072E6CD52DAC202E46",
30-
["JsonCompactColumnizer.dll"] = "2AEBDD1187D2149FC25B06AD159084FBF2B41A32E3207F71A5BCA21C53672E03",
31-
["Log4jXmlColumnizer.dll"] = "2F882BD56E8A7005C8DA584A4E34DEEF13CCF6583F5202A97A086BF507F18B28",
32-
["LogExpert.Resources.dll"] = "2D08895DAD17CCFBC70256980741418D5858F04477A8BB90542022463B1BF1AE",
24+
["CsvColumnizer.dll"] = "990BFCB60C52E25F94199FED572162B4DE972F6D2668907D7D883C625B046E25",
25+
["CsvColumnizer.dll (x86)"] = "990BFCB60C52E25F94199FED572162B4DE972F6D2668907D7D883C625B046E25",
26+
["DefaultPlugins.dll"] = "0C0060BCBFA1D2ADE678408EE7A2907F9F48527AE5094CFFD6B5C25F267E7D7A",
27+
["FlashIconHighlighter.dll"] = "D58183D10346B4B8F01008B7DAA9671D4D257F62B96E62702F3230E7CB19C7F6",
28+
["GlassfishColumnizer.dll"] = "9ECD0D85034A1D383133ED4673069EE66AA755AE12736DD05B5039134EBB3881",
29+
["JsonColumnizer.dll"] = "7548FD058CC23C0E8FF8DB144F83FFE387A2A573FC70964E095FC148C25385EE",
30+
["JsonCompactColumnizer.dll"] = "17F05A7E899FD390A1221258C6C9F57511A05EF03208D1EA838FEB05A2F57C7B",
31+
["Log4jXmlColumnizer.dll"] = "FEBA25CF3F8928AEFA204B9DBE5042B29404633687B216C9D5FACCEE45A6C431",
32+
["LogExpert.Resources.dll"] = "BCCAF332C7807F9D48461AC626B00C73466F0A7B9B05F582405936C1EEA3BC14",
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"] = "C1EE05EAE2F01F6614DF0F9EDA1FC5D12DF7C02766E264A626DD1232805C5D3A",
38-
["SftpFileSystem.dll"] = "32AA0BC7184E281D29E8F1BD9244A73AB908DCC236E233A8CD51CE33526BFC87",
39-
["SftpFileSystem.dll (x86)"] = "AA1F476F483D745E8139F090C194D100FBCC7D38840D7C5B1DC19671B2729FF0",
40-
["SftpFileSystem.Resources.dll"] = "8A559F44F7D74204BA54818A8373024A76E1C632062D22F7BBA6CD1A9821B40F",
41-
["SftpFileSystem.Resources.dll (x86)"] = "8A559F44F7D74204BA54818A8373024A76E1C632062D22F7BBA6CD1A9821B40F",
37+
["RegexColumnizer.dll"] = "EA8BA16549490CD06FAF2CFC0EE160F62CAEDA8FEA470285E8F03030913C5FD1",
38+
["SftpFileSystem.dll"] = "760D7AD67CB5AECC23D265905E74BEF6E78646B94F860CE41CFCDA8F75F6B732",
39+
["SftpFileSystem.dll (x86)"] = "DBBB6DBBE8E17EA80900375C4A4B249DF96D576DECAE30BD9C03BF375B51C21B",
40+
["SftpFileSystem.Resources.dll"] = "99F28C0DD8A1D7487E53A0960351EBC9439C2853E54FC8AA778B789FFF085B53",
41+
["SftpFileSystem.Resources.dll (x86)"] = "99F28C0DD8A1D7487E53A0960351EBC9439C2853E54FC8AA778B789FFF085B53",
4242

4343
};
4444
}

0 commit comments

Comments
 (0)