Skip to content

Commit

Permalink
Automate to update export EDN files #3
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz authored and bbatsov committed Jan 2, 2021
1 parent 7ba549d commit 8c4bae6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build
on:
push:
branches:
- master
schedule:
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.m2
key: v1-dependencies-${{ hashFiles('project.clj') }}
- name: Build exports
run: |
lein run
ls -ltr exports
- name: Commit and push if changed
run: |
git diff
git config --global user.email "exports-bot@example.com"
git config --global user.name "EXPORTS-bot"
git add -A
git commit -m "Updated exports" || exit 0
git push

0 comments on commit 8c4bae6

Please sign in to comment.