forked from patternfly/ai-helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 1001 Bytes
/
Copy pathupdate-plugins-md.yml
File metadata and controls
30 lines (28 loc) · 1001 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
name: Update generated files
on:
workflow_dispatch:
push:
branches: [main]
paths: ['plugins/**']
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- run: git remote set-url origin git@github.com:patternfly/ai-helpers.git
- run: |
bash scripts/generate-plugins-md.sh
bash scripts/generate-skills-json.sh
git diff --quiet PLUGINS.md README.md dist/skills.json || {
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add PLUGINS.md README.md dist/skills.json
git commit -m "docs: auto-update PLUGINS.md, README plugin table, and skills index"
git pull --rebase
git push
}