@@ -71,10 +71,54 @@ jobs:
7171 uses : peter-evans/create-pull-request@v3
7272 id : cprtpn
7373 with :
74- commit-message : " Update to the latest notice file"
74+ commit-message : " Update to the latest NOTICES file"
7575 committer : GitHub <noreply@github.com>
7676 author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
77- title : " Update to the latest notice file"
77+ title : " Update to the latest NOTICES file"
78+ reviewers : travisez13
79+ base : master
80+ draft : false
81+ branch : update-cgmanifest
82+ update-cgmanifest :
83+ name : Update cgmanifest
84+ timeout-minutes : 15
85+ runs-on : windows-latest
86+ if : github.repository == 'PowerShell/PowerShell'
87+ env :
88+ CGMANIFEST_PATH : ' '
89+ steps :
90+ - name : Checkout
91+ uses : actions/checkout@v2
92+ - name : Sync tags
93+ run : |
94+ git fetch --prune --unshallow --tags
95+ - name : Install Ships provider to deal with project.assets.json
96+ run : |
97+ Install-Module -Name dotnet.project.assets -force
98+ - name : Bootstrap
99+ run : |
100+ Import-Module ./build.psm1
101+ Start-PSBootStrap
102+ - name : Verify cgmanifest is up to date
103+ run : |
104+ Import-Module ./build.psm1
105+ Find-Dotnet
106+ ./tools/findMissingNotices.ps1 -Fix
107+ - name : Upload cgmanifest
108+ uses : actions/upload-artifact@v2
109+ if : always() && env.CGMANIFEST_PATH != ''
110+ with :
111+ name : cgmanifest
112+ path : ${{ env.CGMANIFEST_PATH }}
113+ - name : Create Pull Request
114+ uses : peter-evans/create-pull-request@v3
115+ id : cprcgmanifest
116+ if : env.CGMANIFEST_PATH != ''
117+ with :
118+ commit-message : " Update the cgmanifest"
119+ committer : GitHub <noreply@github.com>
120+ author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
121+ title : " Update the cgmanifest"
78122 reviewers : travisez13
79123 base : master
80124 draft : false
0 commit comments