Update datasets #193
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: Update datasets | |
on: | |
schedule: | |
# note: * is a special character in YAML so you have to quote this string | |
# see cron guru for more examples / help on syntax | |
# -> https://crontab.guru/examples.html | |
- cron: '0 5 * * *' # every day at 5 am (utc?) | |
workflow_dispatch: | |
### for testing / debugging allow "manual" start | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' # Version range or exact version of a Ruby version to use, using semvers version range syntax. | |
- name: Run install / adduser | |
env: | |
SSH_KEY: ${{ secrets.SSH_KEY }} | |
run: | | |
bundle install | |
# gem list | |
# gem env | |
yo adduser | |
## note: only (auto-)require config.rb (and NOT boot.rb) for clone/push | |
- name: Run ssh_clone | |
run: yo clone | |
- name: Run gen json | |
run: yo -r ./boot json | |
- name: Run ssh_push | |
run: yo push |