Created
April 1, 2022 10:12
-
-
Save martinratinaud/76b7a5fcd014b6de45f5fd98e308621e to your computer and use it in GitHub Desktop.
Twitter optimal cron
This file contains hidden or 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: optimal-post-on-twitter | |
on: | |
schedule: | |
- cron: '58 17 * * MON' # time adapted for NY timezone | |
- cron: '49 17 * * MON' | |
- cron: '32 13 * * TUE' | |
- cron: '58 17 * * TUE' | |
- cron: '49 21 * * TUE' | |
- cron: '32 13 * * WED' | |
- cron: '58 17 * * WED' | |
- cron: '49 21 * * WED' | |
- cron: '32 13 * * THU' | |
- cron: '58 17 * * THU' | |
- cron: '49 21 * * THU' | |
- cron: '32 13 * * FRI' | |
- cron: '58 17 * * FRI' | |
- cron: '49 21 * * FRI' | |
- cron: '32 13 * * SAT' | |
- cron: '58 17 * * SAT' | |
- cron: '49 21 * * SAT' | |
- cron: '32 13 * * SUN' | |
- cron: '58 17 * * SUN' | |
- cron: '49 21 * * SUN' | |
jobs: | |
cron: | |
runs-on: ubuntu-latest | |
steps: | |
- name: optimal-post-on-twitter | |
run: | | |
curl --request POST \ | |
--url 'https://stakingcrypto.io/api/cron/optimal-post-on-twitter' \ | |
--header 'Authorization: Bearer ${{ secrets.CRON_APP_KEY }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment