-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 989 Bytes
/
cron.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Cron
on:
# Run daily at 8am
schedule:
- cron: '0 16 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
run_script:
runs-on: ubuntu-latest
container: ghcr.io/egovpdx/zendesk-data-analysis/main
steps:
- uses: actions/checkout@v3
- name: Run articles
env:
ZENDESK_API_EMAIL: ${{ secrets.ZENDESK_API_EMAIL }}
ZENDESK_API_TOKEN: ${{ secrets.ZENDESK_API_TOKEN }}
run: Rscript /app/scripts/articles/articles.R
- name: Run graffiti-dashboard
env:
ZENDESK_API_EMAIL: ${{ secrets.ZENDESK_API_EMAIL }}
ZENDESK_API_TOKEN: ${{ secrets.ZENDESK_API_TOKEN }}
run: Rscript /app/scripts/graffiti-dashboard/graffiti-dashboard.R
- name: Set ownership
run: |
chown -R $(id -u):$(id -g) $PWD
- uses: EndBug/add-and-commit@v9
with:
add: "data --force"
default_author: github_actions