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 5
5
branches :
6
6
- ' main'
7
7
paths :
8
- - ' **.md'
8
+ - ' **.md'
9
9
- ' !changelog.md'
10
+ - ' osmfeula.txt'
10
11
11
12
jobs :
12
13
includes :
@@ -31,10 +32,29 @@ jobs:
31
32
- name : +Mᐁ includes
32
33
uses : devlooped/actions-includes@v1
33
34
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
+
34
52
- name : ✍ pull request
35
53
uses : peter-evans/create-pull-request@v6
36
54
with :
37
- add-paths : ' **.md'
55
+ add-paths : |
56
+ **.md
57
+ osmfeula.txt
38
58
base : main
39
59
branch : markdown-includes
40
60
delete-branch : true
Original file line number Diff line number Diff line change 109
109
weak
110
110
[file ".github/workflows/includes.yml"]
111
111
url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
112
- sha = 85829f2510f335f4a411867f3dbaaa116c3ab3de
113
- etag = 086f6b6316cc6ea7089c0dcc6980be519e6ed6e6201e65042ef41b82634ec0ee
112
+ sha = 6a6de0580b40e305f7a0f41b406d4aabaa0756fe
113
+ etag = 1a5cd7a883700c328105910cc212f5f8c9f3759fc1af023e048a9f486da794c1
114
114
weak
115
115
[file ".github/workflows/combine-prs.yml"]
116
116
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