Skip to content

Update Subreddit CSS #2

Update Subreddit CSS

Update Subreddit CSS #2

Workflow file for this run

name: Update Subreddit CSS
on:
push:
branches:
- master
workflow_dispatch:
jobs:
update_css:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install praw requests
- name: Run update script
run: python update_css_script.py
env:
CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.REDDIT_CLIENT_SECRET }}
USERNAME: ${{ secrets.REDDIT_USERNAME }}
PASSWORD: ${{ secrets.REDDIT_PASSWORD }}