-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.11 KB
/
main.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
30
31
32
33
34
35
36
# This is a basic workflow to help you get started with Actions
name: Post saying to Facebook
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
schedule:
- cron: '12 8 * * *'
workflow_dispatch:
jobs:
build_and_post:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Write config file
run: echo 'import os; __getattr__ = os.environ.get' > spreukbot/config.py
- name: Install dependecies
uses: VaultVulp/[email protected]
with:
command: install
- name: Generate and post
uses: VaultVulp/[email protected]
with:
command: run generate --post
env: # Or as an environment variable
FACEBOOK_TOKEN: ${{ secrets.FACEBOOK_TOKEN }}
FACEBOOK_PAGE_TOKEN: ${{ secrets.FACEBOOK_PAGE_TOKEN }}
FACEBOOK_PAGE_ID: ${{ secrets.FACEBOOK_PAGE_ID }}
PIXABAY_KEY: ${{ secrets.PIXABAY_KEY }}
PIXABAY_URL: ${{ secrets.PIXABAY_URL }}