Skip to content

Commit 41062a5

Browse files
authored
Move cgmanifest generation to daily (PowerShell#17258)
* Move cgmanifest generation to daily * fix PR title
1 parent 99f3bb7 commit 41062a5

File tree

2 files changed

+46
-59
lines changed

2 files changed

+46
-59
lines changed

.github/workflows/daily.yml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,54 @@ jobs:
8888
id: cprtpn
8989
if: env.CREATE_PR == 'true'
9090
with:
91-
commit-message: "Update to the latest notice file"
91+
commit-message: "Update to the latest NOTICES file"
9292
committer: GitHub <[email protected]>
9393
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
94-
title: "Update to the latest notice file"
94+
title: "Update to the latest NOTICES file"
95+
reviewers: travisez13
96+
base: master
97+
draft: false
98+
branch: update-cgmanifest
99+
update-cgmanifest:
100+
name: Update cgmanifest
101+
timeout-minutes: 15
102+
runs-on: windows-latest
103+
if: github.repository == 'PowerShell/PowerShell'
104+
env:
105+
CGMANIFEST_PATH: ''
106+
steps:
107+
- name: Checkout
108+
uses: actions/checkout@v2
109+
- name: Sync tags
110+
run: |
111+
git fetch --prune --unshallow --tags
112+
- name: Install Ships provider to deal with project.assets.json
113+
run: |
114+
Install-Module -Name dotnet.project.assets -force
115+
- name: Bootstrap
116+
run: |
117+
Import-Module ./build.psm1
118+
Start-PSBootStrap
119+
- name: Verify cgmanifest is up to date
120+
run: |
121+
Import-Module ./build.psm1
122+
Find-Dotnet
123+
./tools/findMissingNotices.ps1 -Fix
124+
- name: Upload cgmanifest
125+
uses: actions/upload-artifact@v2
126+
if: always() && env.CGMANIFEST_PATH != ''
127+
with:
128+
name: cgmanifest
129+
path: ${{ env.CGMANIFEST_PATH }}
130+
- name: Create Pull Request
131+
uses: peter-evans/create-pull-request@v3
132+
id: cprcgmanifest
133+
if: env.CGMANIFEST_PATH != ''
134+
with:
135+
commit-message: "Update the cgmanifest"
136+
committer: GitHub <[email protected]>
137+
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
138+
title: "Update the cgmanifest"
95139
reviewers: travisez13
96140
base: master
97141
draft: false

.github/workflows/update-cgmanifest.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)