V1.7.2 2024.03.05 #31
Workflow file for this run
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: Generate Social Preview | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Install Python 3.10 | |
id: python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: Update PIP | |
run: | | |
python -m pip install --upgrade pip | |
- name: Setup Image Dependencies | |
run: | | |
python -m pip install --upgrade Pillow | |
- name: Generate Social Preview | |
run: | | |
python -m workflowHelper.preview | |
- name: Show Changes | |
run: | | |
git status | |
- name: Commit Changes | |
run: | | |
git config --local user.name 'github-actions[bot]' | |
git config --local user.email 'github-actions[bot]@users.noreply.github.com' | |
git add ./img/socialPreview.png | |
git commit -m "🤖Generated Social Preview." | |
git push origin HEAD:main | |
continue-on-error: true |