From 8722c041d85709fd3455ca72598fff26c1722c14 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Wed, 23 Sep 2020 16:26:00 +0530 Subject: [PATCH] :construction_worker: Add Update Template CI --- .github/workflows/update-template.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/update-template.yml diff --git a/.github/workflows/update-template.yml b/.github/workflows/update-template.yml new file mode 100644 index 00000000..f280049f --- /dev/null +++ b/.github/workflows/update-template.yml @@ -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