-
-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (27 loc) · 853 Bytes
/
daily-update.yml
File metadata and controls
33 lines (27 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update LicenseDB with latest updates from scancode-toolkit develop daily
on:
schedule:
- cron: '0 16 * * 1-5'
workflow_dispatch:
jobs:
update_licenseDB:
name: Daily LicenseDB Update
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Run script
run: ./etc/scripts/check_commit_run_update.sh
- name: Commit and Push to Publish
run: |
git config --global user.name 'LicenseDB Update GitHub Action'
git config --global user.email 'asmahapatra@nexb.com'
git add docs/* etc/*
git commit -m "Automated LicenseDB update with latest from scancode-toolkit develop"
git push