Skip to content

post tweet everyday #345

post tweet everyday

post tweet everyday #345

Workflow file for this run

name: post tweet everyday
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
environment: myenvironment
steps:
- name: Make envfile
uses: SpicyPizza/create-envfile@v1.2
with:
envkey_API_KEY: ${{secrets.API_KEY}}
envkey_API_SECRET_KEY: ${{secrets.API_SECRET_KEY}}
envkey_ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}
envkey_ACCESS_TOKEN_SECRET: ${{secrets.ACCESS_TOKEN_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 ghcr.io/flavin27/bot-bandejao-uerj-v2/bot-bandejao-uerj-v2:latest
- name: Run the bot image
run: docker run --env-file .env ghcr.io/flavin27/bot-bandejao-uerj-v2/bot-bandejao-uerj-v2:latest