Cronjobs on Github with Github Actions
In the root of your repository create a folder .github/workflows
and in that
folder create a file a file cron.yaml
. This file can be named whatever you
wish. But it has to be a yaml
file.
File below (.github/workflows/cron.yaml
) describes an action that will trigger
every six hours and it will curl example.com.
However. Be sure that you have enough credits. Free account is not that generous with the minutes they give you for free. Check more about GitHub Actions usage on their website https://docs.github.com/en/actions.
# .github/workflows/cron.yaml
name: Do a curl every 6 hours
on:
schedule:
- cron: '0 */6 * * *'
jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: Call some url
run: curl 'https://example.com'
Other notes
- c Embedding resources into binary with C
- Set color temperature of displays on i3
- Making cgit look nicer
- Cache busting in Hugo
- #cat-v on weechat configuration
- Download list of YouTube files
- Change permissions of matching files recursively
- Simple presentations with Markdown
- Extract lines from a file with sed
- c Sending signals to C programs
- plan9 Take a screenshot in Plan9
- Alacritty open links with modifier
- Easy measure time took in a bash script
- c Extend Lua with custom C functions using Clang
- Parse RSS feeds with Lua