👷 Add Update Template CI

This commit is contained in:
Anand Chowdhary
2020-09-23 16:26:00 +05:30
committed by GitHub
parent 7a29297e28
commit 8722c041d8
+30
View File
@@ -0,0 +1,30 @@
name: Update Template CI
on:
schedule:
- cron: "0 0 * * 1"
repository_dispatch:
types: [update_template]
workflow_dispatch:
jobs:
release:
name: Build
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT }}
- name: Setup Node.js
uses: actions/setup-node@v2.1.1
with:
node-version: 14
- name: Update template
run: npx update-template https://github.com/koj-co/upptime
- name: Commit new data
uses: stefanzweifel/git-auto-commit-action@v4.5.1
with:
commit_message: ":arrow_up: Update Upptime to latest"
commit_user_name: Koj Bot
commit_user_email: bot@koj.co
commit_author: Koj Bot <bot@koj.co>