Skip to content

add workflow

add workflow #3

name: Update gallery JSON file
on:
push:
branches:
- '*'
paths:
- repositories.json
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run gallery_generator.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python src/gallery_generator.py