Automate updating 3rd party licenses (#82)

This commit is contained in:
Paulo F. Oliveira
2022-01-12 11:40:11 +00:00
committed by GitHub
parent ccc3fdea3c
commit 3250a83e5a
3 changed files with 33 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -eux
git config user.name "GitHub Actions"
git config user.email "actions@user.noreply.github.com"
git checkout main
npm run licenses
git add 3RD_PARTY_LICENSES
git commit -m "Update 3rd party licenses" || true
git push origin
@@ -0,0 +1,19 @@
---
name: update_3rd_party_licenses
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
update:
name: Update 3rd party licenses
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run:
./.github/workflows/update_3rd_party_licenses.sh
+1 -1
View File
@@ -8,7 +8,7 @@
"jslint": "eslint src/**/*.js && eslint __tests__/**/*.js",
"licenses": "yarn licenses generate-disclaimer > 3RD_PARTY_LICENSES",
"markdownlint": "markdownlint *.md",
"shellcheck": "shellcheck src/install-*.sh",
"shellcheck": "shellcheck src/install-*.sh .github/workflows/*.sh",
"test": "node __tests__/setup-beam.test.js && node ./__tests__/problem-matchers.test.js",
"yamllint": "yamllint .github/workflows/**.yml && yamllint .*.yml && yamllint *.yml"
},