File tree Expand file tree Collapse file tree 3 files changed +2167
-7
lines changed
Expand file tree Collapse file tree 3 files changed +2167
-7
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - ' main'
77 paths :
8- - ' **.md'
8+ - ' **.md'
9+ - ' !changelog.md'
10+ - ' osmfeula.txt'
911
1012jobs :
1113 includes :
1214 runs-on : ubuntu-latest
15+ permissions :
16+ contents : write
17+ pull-requests : write
1318 steps :
1419 - name : 🤖 defaults
1520 uses : devlooped/actions-bot@v1
@@ -20,19 +25,36 @@ jobs:
2025 github_token : ${{ secrets.GITHUB_TOKEN }}
2126
2227 - name : 🤘 checkout
23- uses : actions/checkout@v2
28+ uses : actions/checkout@v4
2429 with :
2530 token : ${{ env.GH_TOKEN }}
2631
2732 - name : +Mᐁ includes
28- uses : devlooped/actions-include@v1
29- with :
30- recurse : false
31- validate : false
33+ uses : devlooped/actions-includes@v1
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
3251
3352 - name : ✍ pull request
34- uses : peter-evans/create-pull-request@v3
53+ uses : peter-evans/create-pull-request@v6
3554 with :
55+ add-paths : |
56+ **.md
57+ osmfeula.txt
3658 base : main
3759 branch : markdown-includes
3860 delete-branch : true
Original file line number Diff line number Diff line change 8686 skip
8787[file ".github/workflows/includes.yml"]
8888 url = https://github.com/devlooped/oss/blob/main/.github/workflows/includes.yml
89+ sha = 26e8cb798ce72dec7072db826cc9694d456797bd
90+ etag = df06492eeb2daaae4168d71bbb643f5da2693b67cdd58c42ffa44a191ee99b69
91+ weak
8992[file ".github/workflows/combine-prs.yml"]
9093 url = https://github.com/devlooped/oss/blob/main/.github/workflows/combine-prs.yml
9194 sha = c1610886eba42cb250e3894aed40c0a258cd383d
You can’t perform that action at this time.
0 commit comments