-
-
Notifications
You must be signed in to change notification settings - Fork 101
30 lines (29 loc) · 1.48 KB
/
twitter-recurring-ideas.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
schedule:
# Schedule when tweet should go out
# At 09:00 on the first day of the month, every month.
# https://crontab.guru/#0_9_1_*_*
- cron: "0 9 1 * *"
name: Create tweet about ideas # provide custom name for recurring workflow that will help identify what is it about
jobs:
create-ideas-tweet: # provide clear identifier
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup node to execute script
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Create another copy of the tweet
run: TWEET_FILENAME=discuss-ideas.tweet node ./.github/scripts/createRecurringTweetFile.js # provide a file name of the recurring tweet that you created
- name: Create Pull Request with new tweet
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'chore(tweet): recurring tweet about discussion tools ideas in our discussions forum' # put some sort description
committer: asyncapi-bot <info@asyncapi.io>
author: asyncapi-bot <info@asyncapi.io>
title: 'chore(tweet): recurring tweet about discussion tools ideas in our discussions forum' # put some sort description
body: 'This is a tweet that we want to share regularly to make sure all AsyncAPI followers know about discussions forum' # put some longer description
branch: 'tweet/${{github.job}}'