Last active
April 28, 2020 20:22
-
-
Save drikusroor/165aedac12c2e3662c4706f099786bdf to your computer and use it in GitHub Desktop.
Cronjob workflow to fetch COVID-19 data and upload to FTP server.
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: CI - Update COVID-19 Data | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
repository: CSSEGISandData/COVID-19 | |
path: public/COVID-19 | |
- name: dist-to-ft | |
uses: isthatcentered/dist-to-ftp@v1 | |
with: | |
host: kokokoding.nl | |
user: ${{ secrets.FtpUser }} | |
password: ${{ secrets.FtpPassword }} | |
path: ./public/COVID-19 | |
into: /domains/kokokoding.nl/public_html/kovid-19/COVID-19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment