name: Ruby |
on: |
push: |
branches: [ master ] |
pull_request: |
branches: [ master ] |
schedule: |
- cron: '* 3,11,19 * * *' |
|
jobs: |
test: |
|
runs-on: ubuntu-latest |
|
steps: |
- uses: actions/checkout@v2 |
- name: Set up Ruby |
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 |
with: |
ruby-version: 2.6 |
- name: Install dependencies |
run: sudo apt-get install libsqlite3-dev && gem install pluto |
- name: build reader |
run: pluto b planetid.ini -t planetid -o docs |
- name: Deploy Files |
run: | |
git remote add gh-token "https://github.com/didecentral/planetid-reboot.git" |
git config user.name "github-actions[bot]" # I use the GitHub Actions bot here. |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
git add . |
git commit -a -m "update feeds" |
- cron: '* 3,11,19 * * *' |
that needed to be '0 3,11,19 * * *' so it only runs at the beginning of those hours... I may end up changing it to hourly.... and maybe some other tweaks... so if you land on this forum and think this is what you were looking for, maybe wanna check the source to see it's evolution. |