Update libyear info #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update libyear info | |
on: | |
schedule: | |
- cron: '0 7 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install packages | |
run: npm ci | |
- name: Update data | |
run: node bin/main.mjs | |
- name: Commit update | |
run: | | |
git config user.name 'Dependency drift tracker' | |
git config user.email 'dependency-drift-tracker@users.noreply.github.com' | |
git add data | |
git commit --message 'Update data' | |
git push |