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 dbc134c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cifs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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 if any
run: |
git add crystals/cifs/*.cif
if [ -n "$(git status --porcelain)" ];
then
git commit --message "Updated CIFs"
git push origin master
fi

0 comments on commit dbc134c

Please sign in to comment.