.github/workflows/bot.yaml #22067
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
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> |