Create tweet about ideas #24
This file contains 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
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 <[email protected]> | |
author: asyncapi-bot <[email protected]> | |
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}}' |