Skip to content

.github/workflows/bot.yaml #21243

.github/workflows/bot.yaml

.github/workflows/bot.yaml #21243

Workflow file for this run

name: "AWS What's New Bot"
on:
workflow_dispatch:
schedule:
# Trigger workflow automatically every hour
- cron: 0 * * * *
jobs:
run-bot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run bot
run: cd src && ../bin/bot
env:
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
# - name: Update LAST_PUBLISHED_DATE
# run: echo "Fri, 16 Oct 2020 21:50:50 +0000" > src/LAST_PUBLISHED_DATE
- name: Commit LAST_PUBLISHED_DATE
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Updated automatically by bot
file_pattern: src/LAST_PUBLISHED_DATE
commit_user_name: tuladhar
commit_user_email: tuladharpuru@gmail.com
commit_author: Puru <tuladharpuru@gmail.com>