Update og images #86
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: Update og images | |
on: | |
schedule: | |
# Runs at 00:05 AM UTC every day | |
- cron: '5 0 * * *' | |
workflow_dispatch: | |
jobs: | |
update_og_images: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# Install dependencies | |
- name: Install dependencies | |
run: npm ci | |
- name: Install playwright dependencies | |
run: npx playwright install | |
- name: Update og images | |
env: | |
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }} | |
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }} | |
run: npm run update-og-images |