Visualize latest DMARC run #131
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: Visualize latest DMARC run | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '27 5 * * 4' | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install Ubuntu dependencies | |
run: sudo apt install -y libcurl4-openssl-dev libgmp-dev libxml2-dev libglpk-dev | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v1 | |
with: | |
r-version: "4.0.5" | |
http-user-agent: "R/4.0.5 R (4.0.5 x86_64-pc-linux-gnu x86_64 linux-gnu)" | |
- name: Process DMARC Data | |
run: R --silent --no-echo --file=process.R | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "Automated" | |
git config user.email "actions@users.noreply.github.com" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Update vis: ${timestamp}" || exit 0 | |
git push |