Skip to content

Commit

Permalink
Rename action, run it earlier, commit only when running on master
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanb committed Jun 22, 2020
1 parent 9554a2d commit 1252e97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Daily update

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -13,7 +13,7 @@ on:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '15 6 * * *'
- cron: '15 4 * * *'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -62,7 +62,8 @@ jobs:
git diff data/SR.csv
# Git commit + push, see https://github.com/github-actions-x/commit
- name: push
- name: Publish changes to git
if: github.ref == 'refs/heads/master'
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1252e97

Please sign in to comment.