Skip to content

Instantly share code, notes, and snippets.

@vicnicius
Created December 31, 2020 15:54
Show Gist options
  • Save vicnicius/14d7db04d301b64f0b89e63989f492a5 to your computer and use it in GitHub Desktop.
Save vicnicius/14d7db04d301b64f0b89e63989f492a5 to your computer and use it in GitHub Desktop.
name: Update Posts
+on:
+ schedule:
+ - cron: "0 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2-beta
with:
node-version: "14"
- name: Install Dependencies (with cache)
uses: bahmutov/npm-install@v1
- name: Update website with latest changes
run: npm run build
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update latest posts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment