Skip to content

New floppy-disk icon #31

New floppy-disk icon

New floppy-disk icon #31

name: Keywords autogenerated
on:
workflow_dispatch:
pull_request:
branches:
- production
paths:
- "icons/**"
jobs:
generate-keywords:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout branch or create new one
run: |
git fetch
if git branch -a | grep origin/import-figma-icons; then
git checkout import-figma-icons
else
git checkout -b import-figma-icons
fi
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Upgrade pip, setuptools, and wheel
run: |
pip install --upgrade pip setuptools wheel
# Paso 3: Instalar dependencias de Python
- name: Install dependencies
run: |
pip install openai python-dotenv --use-pep517
- name: Install prettier
run: npm install -g prettier
- name: Run keywords generator
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: python3 .github/keywords/keywords-generator.py
- name: Commit & Push
env:
GITHUB_TOKEN: ${{ secrets.NOVUM_PRIVATE_REPOS }}
run: |
git config user.name "github-actions"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Icons keywords autogenerated"
git push origin import-figma-icons