Alice Blog Checker #4927
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: Alice Blog Checker | |
on: | |
schedule: | |
- cron: '30 * * * *' | |
workflow_dispatch: | |
jobs: | |
alice_blog_checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Set up environment variables | |
run: | | |
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> $GITHUB_ENV | |
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> $GITHUB_ENV | |
echo "ALICE_DISCORD_WEBHOOK_URL=${{ secrets.ALICE_DISCORD_WEBHOOK_URL }}" >> $GITHUB_ENV | |
echo "SUPABASE_FEED_TABLE_NAME=${{ secrets.SUPABASE_FEED_TABLE_NAME }}" >> $GITHUB_ENV | |
echo "SUPABASE_FEED_TYPE_ALICE=${{ secrets.SUPABASE_FEED_TYPE_ALICE }}" >> $GITHUB_ENV | |
echo "ERROR_WEBHOOK_URL=${{ secrets.ERROR_WEBHOOK_URL }}" >> $GITHUB_ENV | |
echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV | |
echo "GITHUB_REPO=${{ secrets.GITHUB_REPO }}" >> $GITHUB_ENV | |
echo "SUPABASE_EMAIL=${{ secrets.SUPABASE_EMAIL }}" >> $GITHUB_ENV | |
echo "SUPABASE_PASSWORD=${{ secrets.SUPABASE_PASSWORD }}" >> $GITHUB_ENV | |
echo "PIXABAY_API_KEY=${{ secrets.PIXABAY_API_KEY }}" >> $GITHUB_ENV | |
echo "FLICKR_API_KEY=${{ secrets.FLICKR_API_KEY }}" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
yarn install | |
working-directory: packages/aliceBlogChecker | |
- name: Run Alice Blog Checker | |
env: | |
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} | |
ALICE_DISCORD_WEBHOOK_URL: ${{ secrets.ALICE_DISCORD_WEBHOOK_URL }} | |
SUPABASE_FEED_TABLE_NAME: ${{ secrets.SUPABASE_FEED_TABLE_NAME }} | |
SUPABASE_FEED_TYPE_ALICE: ${{ secrets.SUPABASE_FEED_TYPE_ALICE }} | |
ERROR_WEBHOOK_URL: ${{ secrets.ERROR_WEBHOOK_URL }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GITHUB_REPO: ${{ secrets.GITHUB_REPO }} | |
SUPABASE_EMAIL: ${{ secrets.SUPABASE_EMAIL }} | |
SUPABASE_PASSWORD: ${{ secrets.SUPABASE_PASSWORD }} | |
PIXABAY_API_KEY: ${{ secrets.PIXABAY_API_KEY }} | |
FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }} | |
run: | | |
node src/index.js | |
working-directory: packages/aliceBlogChecker |