Graffiti Dashboard (cron) #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Graffiti Dashboard (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 script | |
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 |