Skip to content

Cron

Cron #239

Workflow file for this run

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