-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.12 KB
/
social_preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
with:
ref: 'main'
- 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