Update dependencies and reseed #1832
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
with: | |
lfs: true | |
- 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 }} |