Skip to content

Commit

Permalink
Merge pull request #11 from xchem/actions-fixes
Browse files Browse the repository at this point in the history
Update autogeneration files code
  • Loading branch information
reskyner authored Mar 25, 2021
2 parents 4b9c6f7 + dce6dca commit 3737cb5
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto-commit of new versions of migrations, SQL files & schema image
file_pattern: '*.png sql/*.sql */migrations/*'
file_pattern: '*.png *.sql sql/*.sql */migrations/*'
6 changes: 5 additions & 1 deletion compile_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
to_add = open(f, 'r').read()
str_out += to_add

with open('init.sql', 'w') as w:
with open('init.sql', 'w+') as w:
w.write(str_out)

if not os.path.isfile('init.sql'):
raise Exception('init.sql file not generated - this needs to exist to create XCDB!')

Loading

0 comments on commit 3737cb5

Please sign in to comment.