-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 973 Bytes
/
post-everyday.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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/[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