neiam
/action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Automate updating 3rd party licenses (#82)
3250a83 · Paulo F. Oliveira · 2022-01-12 11:40
Files changed
added
.github/workflows/update_3rd_party_licenses.sh
+13
−0
@@ -0,0 +1,13 @@
| 1 | +#!/usr/bin/env bash | |
| 2 | + | |
| 3 | +set -eux | |
| 4 | + | |
| 5 | +git config user.name "GitHub Actions" | |
| 6 | +git config user.email "actions@user.noreply.github.com" | |
| 7 | +git checkout main | |
| 8 | + | |
| 9 | +npm run licenses | |
| 10 | + | |
| 11 | +git add 3RD_PARTY_LICENSES | |
| 12 | +git commit -m "Update 3rd party licenses" || true | |
| 13 | +git push origin |
added
.github/workflows/update_3rd_party_licenses.yml
+19
−0
@@ -0,0 +1,19 @@
| 1 | +--- | |
| 2 | +name: update_3rd_party_licenses | |
| 3 | + | |
| 4 | +on: | |
| 5 | + schedule: | |
| 6 | + - cron: '0 12 * * *' | |
| 7 | + workflow_dispatch: | |
| 8 | + | |
| 9 | +jobs: | |
| 10 | + update: | |
| 11 | + name: Update 3rd party licenses | |
| 12 | + runs-on: ubuntu-latest | |
| 13 | + steps: | |
| 14 | + - uses: actions/checkout@v2 | |
| 15 | + - uses: actions/setup-node@v1 | |
| 16 | + with: | |
| 17 | + node-version: '14' | |
| 18 | + - run: | |
| 19 | + ./.github/workflows/update_3rd_party_licenses.sh |
modified
package.json
+1
−1
@@ -8,7 +8,7 @@
| 8 | 8 | "jslint": "eslint src/**/*.js && eslint __tests__/**/*.js", |
| 9 | 9 | "licenses": "yarn licenses generate-disclaimer > 3RD_PARTY_LICENSES", |
| 10 | 10 | "markdownlint": "markdownlint *.md", |
| 11 | − "shellcheck": "shellcheck src/install-*.sh", | |
| 11 | + "shellcheck": "shellcheck src/install-*.sh .github/workflows/*.sh", | |
| 12 | 12 | "test": "node __tests__/setup-beam.test.js && node ./__tests__/problem-matchers.test.js", |
| 13 | 13 | "yamllint": "yamllint .github/workflows/**.yml && yamllint .*.yml && yamllint *.yml" |
| 14 | 14 | }, |
Parents: ccc3fde