post tweet everyday #172
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: post tweet everyday | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 14 * * *' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: myenvironment | |
steps: | |
- name: Make envfile | |
uses: SpicyPizza/[email protected] | |
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 | |