Skip to content

Commit 3deb4be

Browse files
authored
chore(ci): automatically generate THIRD_PARTY_NOTICES MONGOSH-525 (#707)
1 parent 0928ec3 commit 3deb4be

File tree

5 files changed

+10409
-7183
lines changed

5 files changed

+10409
-7183
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
# Once a week or on pushes to master
3+
schedule:
4+
- cron: '0 3 * * 0'
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_third_party_notices:
11+
name: Update THIRD_PARTY_NOTICES
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-node@v2
16+
- name: Install Dependencies
17+
run: npm run bootstrap-ci
18+
- name: Update THIRD_PARTY_NOTICES.md
19+
run: npm run update-third-party-notices
20+
- name: Commit changes
21+
run: |
22+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
23+
git config --local user.name "github-actions[bot]"
24+
git commit --no-allow-empty -m "chore: update THIRD_PARTY_NOTICES" THIRD_PARTY_NOTICES.md || true
25+
- name: Push updates
26+
uses: ad-m/[email protected]
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)