Skip to content

Commit

Permalink
Move cgmanifest generation to daily (#17258)
Browse files Browse the repository at this point in the history
* Move cgmanifest generation to daily

* fix PR title
  • Loading branch information
TravisEz13 committed May 31, 2022
1 parent 5c804e2 commit 30aa6c7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 59 deletions.
48 changes: 46 additions & 2 deletions .github/workflows/daily.yml
Expand Up @@ -71,10 +71,54 @@ jobs:
uses: peter-evans/create-pull-request@v3
id: cprtpn
with:
commit-message: "Update to the latest notice file"
commit-message: "Update to the latest NOTICES file"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: "Update to the latest notice file"
title: "Update to the latest NOTICES file"
reviewers: travisez13
base: master
draft: false
branch: update-cgmanifest
update-cgmanifest:
name: Update cgmanifest
timeout-minutes: 15
runs-on: windows-latest
if: github.repository == 'PowerShell/PowerShell'
env:
CGMANIFEST_PATH: ''
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sync tags
run: |
git fetch --prune --unshallow --tags
- name: Install Ships provider to deal with project.assets.json
run: |
Install-Module -Name dotnet.project.assets -force
- name: Bootstrap
run: |
Import-Module ./build.psm1
Start-PSBootStrap
- name: Verify cgmanifest is up to date
run: |
Import-Module ./build.psm1
Find-Dotnet
./tools/findMissingNotices.ps1 -Fix
- name: Upload cgmanifest
uses: actions/upload-artifact@v2
if: always() && env.CGMANIFEST_PATH != ''
with:
name: cgmanifest
path: ${{ env.CGMANIFEST_PATH }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
id: cprcgmanifest
if: env.CGMANIFEST_PATH != ''
with:
commit-message: "Update the cgmanifest"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: "Update the cgmanifest"
reviewers: travisez13
base: master
draft: false
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/update-cgmanifest.yml

This file was deleted.

0 comments on commit 30aa6c7

Please sign in to comment.