Skip to content

Bot Run

Bot Run #21368

Workflow file for this run

name: Bot Run
on:
workflow_dispatch:
schedule:
- cron: '30 * * * *' # At minute 30 (once an hour)
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
envkey_JSONSTORAGE_USER: ${{ secrets.JSONSTORAGE_USER }}
envkey_JSONSTORAGE_KEY: ${{ secrets.JSONSTORAGE_KEY }}
envkey_JSONSTORAGE_OBJECT: ${{ secrets.JSONSTORAGE_OBJECT }}
envkey_TWITTER_WIKIDATAMETER_ACCESS_TOKEN: ${{ secrets.TWITTER_WIKIDATAMETER_ACCESS_TOKEN }}
envkey_TWITTER_WIKIDATAMETER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_WIKIDATAMETER_ACCESS_TOKEN_SECRET }}
envkey_TWITTER_WIKIDATAMETER_CONSUMER_KEY: ${{ secrets.TWITTER_WIKIDATAMETER_CONSUMER_KEY }}
envkey_TWITTER_WIKIDATAMETER_CONSUMER_SECRET: ${{ secrets.TWITTER_WIKIDATAMETER_CONSUMER_SECRET }}
envkey_TWITTER_WIKIPEDIAMETER_ACCESS_TOKEN: ${{ secrets.TWITTER_WIKIPEDIAMETER_ACCESS_TOKEN }}
envkey_TWITTER_WIKIPEDIAMETER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_WIKIPEDIAMETER_ACCESS_TOKEN_SECRET }}
envkey_TWITTER_WIKIPEDIAMETER_CONSUMER_KEY: ${{ secrets.TWITTER_WIKIPEDIAMETER_CONSUMER_KEY }}
envkey_TWITTER_WIKIPEDIAMETER_CONSUMER_SECRET: ${{ secrets.TWITTER_WIKIPEDIAMETER_CONSUMER_SECRET }}
envkey_TWITTER_WIKIMEDIAMETER_ACCESS_TOKEN: ${{ secrets.TWITTER_WIKIMEDIAMETER_ACCESS_TOKEN }}
envkey_TWITTER_WIKIMEDIAMETER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_WIKIMEDIAMETER_ACCESS_TOKEN_SECRET }}
envkey_TWITTER_WIKIMEDIAMETER_CONSUMER_KEY: ${{ secrets.TWITTER_WIKIMEDIAMETER_CONSUMER_KEY }}
envkey_TWITTER_WIKIMEDIAMETER_CONSUMER_SECRET: ${{ secrets.TWITTER_WIKIMEDIAMETER_CONSUMER_SECRET }}
file_name: .env
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Pull the bot image
run: docker pull docker.pkg.github.com/addshore/twitter-wikidatameter/bot:latest
- name: Run the bot image
run: docker run --rm --env-file .env docker.pkg.github.com/addshore/twitter-wikidatameter/bot:latest