londonmapbot #1240
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: londonmapbot | |
on: | |
schedule: | |
- cron: '14 9/8 * * *' # trigger at 09:14 and 17:14 every day | |
jobs: | |
post-image: | |
runs-on: macOS-latest | |
env: | |
RTOOT_DEFAULT_TOKEN: ${{ secrets.RTOOT_DEFAULT_TOKEN}} | |
MAPBOX_PUBLIC_ACCESS_TOKEN: ${{ secrets.MAPBOX_PUBLIC_ACCESS_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Install packages | |
run: Rscript -e 'install.packages(c("rtoot", "purrr"), dependencies = TRUE)' | |
- name: Create and post image | |
run: Rscript post-image.R |