github: fixup openring update workflow

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-08-14 02:53:17 +05:30
parent 284e2e4dd5
commit 2edef02155
1 changed files with 14 additions and 1 deletions

View File

@ -1,7 +1,7 @@
name: Update openring data
on:
schedule:
- cron: '0 0 * * 6'
- cron: '0 0 * * *'
jobs:
update-publicsuffix-data:
@ -10,9 +10,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '^1.15'
- name: Install openring
run: go get git.sr.ht/~sircmpwn/openring
- name: Run openring
run: ./scripts/openring.sh
- name: Initialize git config
run: |
git config user.name "GitHub Actions"
git config user.email noreply@github.com
- name: Commit and push changes
run: |
git add layouts/partials/openring.html