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 109109 weak
110110[file ".github/workflows/includes.yml"]
111111 url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
112- sha = 85829f2510f335f4a411867f3dbaaa116c3ab3de
113- etag = 086f6b6316cc6ea7089c0dcc6980be519e6ed6e6201e65042ef41b82634ec0ee
112+ sha = 6a6de0580b40e305f7a0f41b406d4aabaa0756fe
113+ etag = 1a5cd7a883700c328105910cc212f5f8c9f3759fc1af023e048a9f486da794c1
114114 weak
115115[file ".github/workflows/combine-prs.yml"]
116116 url = https://github.com/devlooped/oss/blob/main/.github/workflows/combine-prs.yml
You can’t perform that action at this time.
0 commit comments