-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 941 Bytes
/
Copy pathgenerate-thumbnails.yml
File metadata and controls
33 lines (27 loc) · 941 Bytes
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
name: Generate Thumbnails
on:
push:
paths:
- 'management-portal/docs/**'
workflow_dispatch: {}
jobs:
generate:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Setup ImageMagick
run: choco install imagemagick -y
- name: Generate thumbnails
working-directory: management-portal/docs
run: |
pwsh -NoProfile -ExecutionPolicy Bypass -File .\generate-thumbnails.ps1 -Width 300 -Force
- name: Commit thumbnails
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add management-portal/docs/thumbnails || true
git commit -m "chore(docs): add/update thumbnails" || echo "No changes to commit"
git push origin HEAD:main || echo "Push failed"