What powers this wonderful thing? #12
-
Its all in the title, but is it hosted on google or something else? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @githubUser01946! It is done here directly, with GitHub Actions. I set up an Action that runs every hour, and this Action just launches the script that selects a line from the file and posts it on Twitter and Mastodon. This is the Action: https://github.com/jesusjimsa/beatles-lyrics-every-hour/blob/master/.github/workflows/send_tweet.yml There is also a limitation from GitHub that disables Actions on repositories that haven't been active for a month (no commits). So I also set up an action that creates a dummy commit and pushes it. It just writes the current date once a month to keep everything running. This is the one for dummy commits: https://github.com/jesusjimsa/beatles-lyrics-every-hour/blob/master/.github/workflows/update_repo.yml |
Beta Was this translation helpful? Give feedback.
-
Ok but how do you get it from here to mastodon?
…On Thu, 6 Apr 2023, 12:55 pm Jesús Jiménez Sánchez, < ***@***.***> wrote:
Hi @githubUser01946 <https://github.com/githubUser01946>!
It is done here directly, with GitHub Actions. I set up an Action that
runs every hour, and this Action just launches the script that selects a
line from the file and posts it on Twitter and Mastodon.
This is the Action:
https://github.com/jesusjimsa/beatles-lyrics-every-hour/blob/master/.github/workflows/send_tweet.yml
There is also a limitation from GitHub that disables Actions on
repositories that haven't been active for a month (no commits). So I also
set up an action that creates a dummy commit and pushes it. It just writes
the current date once a month to keep everything running.
This is the one for dummy commits:
https://github.com/jesusjimsa/beatles-lyrics-every-hour/blob/master/.github/workflows/update_repo.yml
—
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4ADEB2OLJOT25TEPMJZ4LDW72VMNANCNFSM6AAAAAAWVIP3XQ>
.
You are receiving this because you were mentioned.Message ID:
<jesusjimsa/beatles-lyrics-every-hour/repo-discussions/12/comments/5542932
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
Cool, thanks!
Is there a tutorial somewhere so I can get something up and running?
…On Fri, 7 Apr 2023, 7:59 pm Jesús Jiménez Sánchez, ***@***.***> wrote:
For Mastodon, I use an API called Mastodon.py:
https://github.com/halcy/Mastodon.py
It's very easy, I had it ready pretty fast.
—
Reply to this email directly, view it on GitHub
<#12 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4ADEBZII3DAETLQ6VX7SCTXABPX3ANCNFSM6AAAAAAWVIP3XQ>
.
You are receiving this because you were mentioned.Message ID:
<jesusjimsa/beatles-lyrics-every-hour/repo-discussions/12/comments/5555686
@github.com>
|
Beta Was this translation helpful? Give feedback.
Hi @githubUser01946!
It is done here directly, with GitHub Actions. I set up an Action that runs every hour, and this Action just launches the script that selects a line from the file and posts it on Twitter and Mastodon.
This is the Action: https://github.com/jesusjimsa/beatles-lyrics-every-hour/blob/master/.github/workflows/send_tweet.yml
There is also a limitation from GitHub that disables Actions on repositories that haven't been active for a month (no commits). So I also set up an action that creates a dummy commit and pushes it. It just writes the current date once a month to keep everything running.
This is the one for dummy commits: https://github.com/jesusjimsa/beatles-lyrics-eve…