Skip to content

Commit

Permalink
CI: update CIFs monthly
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Jun 15, 2021
1 parent f3c4870 commit ed6d5d3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/cifs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update CIFs

on:
push:
schedule:
# Every month
- cron: '0 0 1 * *'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set-up git
run: |
git config user.name "GitHub Actions"
git config user.email "<>"
- name: Update CIFs
run: |
python -m pip install --upgrade pip
pip install numpy wheel
pip install -r requirements.txt
python -m get_cifs
- name: Commit changes
run: |
git add crystals/cifs/*.cif
git commit --allow-empty --message "Updated CIFs"
git push origin master

0 comments on commit ed6d5d3

Please sign in to comment.