-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (34 loc) · 1.22 KB
/
update-and-reseed.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Update dependencies and reseed
on:
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
jobs:
update_and_reseed:
runs-on: ubuntu-latest
name: Update dependencies and reseed
outputs:
changes_detected: ${{ steps.auto_commit.outputs.changes_detected == 'true' }}
steps:
- uses: actions/checkout@v2
- run: make update_and_reseed
- run: make test
- uses: stefanzweifel/git-auto-commit-action@v4
id: auto_commit
with:
commit_user_name: shinybrad
commit_user_email: [email protected]
commit_author: shinybrad <[email protected]>
- name: Bump version and push tag
if: steps.auto_commit.outputs.changes_detected == 'true'
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
if: steps.auto_commit.outputs.changes_detected == 'true'
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}