File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed
Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - ' main'
77 paths :
8- - ' **.md'
8+ - ' **.md'
99 - ' !changelog.md'
10+ - ' osmfeula.txt'
1011
1112jobs :
1213 includes :
@@ -31,10 +32,29 @@ jobs:
3132 - name : +Mᐁ includes
3233 uses : devlooped/actions-includes@v1
3334
35+ - name : 📝 OSMF EULA
36+ shell : pwsh
37+ run : |
38+ $file = "osmfeula.txt"
39+ $props = "src/Directory.Build.props"
40+ if (-not (test-path $file) -or -not (test-path $props)) {
41+ exit 0
42+ }
43+
44+ $product = dotnet msbuild $props -getproperty:Product
45+ if (-not $product) {
46+ write-error 'To use OSMF EULA, ensure the $(Product) property is set in Directory.props'
47+ exit 1
48+ }
49+
50+ ((get-content -raw $file) -replace '\$product\$',$product).trim() | set-content $file
51+
3452 - name : ✍ pull request
3553 uses : peter-evans/create-pull-request@v6
3654 with :
37- add-paths : ' **.md'
55+ add-paths : |
56+ **.md
57+ osmfeula.txt
3858 base : main
3959 branch : markdown-includes
4060 delete-branch : true
Original file line number Diff line number Diff line change 2525 weak
2626[file ".github/workflows/includes.yml"]
2727 url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
28- sha = 85829f2510f335f4a411867f3dbaaa116c3ab3de
29- etag = 086f6b6316cc6ea7089c0dcc6980be519e6ed6e6201e65042ef41b82634ec0ee
28+ sha = 26e8cb798ce72dec7072db826cc9694d456797bd
29+ etag = df06492eeb2daaae4168d71bbb643f5da2693b67cdd58c42ffa44a191ee99b69
3030 weak
3131[file "src/Directory.Build.props"]
3232 url = https://github.com/devlooped/oss/blob/main/src/Directory.Build.props
You can’t perform that action at this time.
0 commit comments