mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-28 02:30:49 +00:00
Automate updating 3rd party licenses (#82)
This commit is contained in:
+13
@@ -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
|
||||
Reference in New Issue
Block a user