Skip to content

Commit

Permalink
Update GitHub action schedule to every 2nd hover
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Nov 18, 2020
1 parent 50c2ed7 commit 900c77c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/tweet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ name: tweet

on:
schedule:
- cron: '42 10 * * *' # Tweet every 18:42 (GMT +8)

- cron: "0 1/2 * * *" # Tweet every 2nd hover
push:
branches:
- main
jobs:
tweet:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Setup ruby
uses: eregon/use-ruby-action@master
with:
ruby-version: 2.7
- name: Install Dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Build
run: |
ruby relay.rb
- uses: actions/checkout@v1
- name: Setup ruby
uses: eregon/use-ruby-action@master
with:
ruby-version: 2.7
- name: Install Dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Build
run: |
ruby relay.rb
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Twitter Bot for Ruby China

![tweet](https://github.com/ruby-china/twitter-bot/workflows/tweet/badge.svg)
[![tweet](https://github.com/ruby-china/twitter-bot/workflows/tweet/badge.svg)](https://github.com/ruby-china/twitter-bot/actions?query=workflow%3Atweet)

Relay Excellent Posts from [Ruby China](https://ruby-china.org) to [Ruby China Twitter](https://twitter.com/ruby_china)

0 comments on commit 900c77c

Please sign in to comment.