-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (52 loc) · 1.78 KB
/
Copy pathupdate-product-versions.yml
File metadata and controls
64 lines (52 loc) · 1.78 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Update Product Versions
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
concurrency:
group: update-product-versions
cancel-in-progress: false
permissions:
contents: write
pull-requests: write
jobs:
update-product-versions:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
- name: Update and validate tracked product versions
run: pnpm manifest-data:update -- --only=product-versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check formatting
run: |
pnpm format:check
pnpm biome:check
git diff --check
- name: Check for changes
id: git-check
run: |
git diff --exit-code manifests data/data-health.json docs/DATA-HEALTH.md src/lib/generated || echo "changes=true" >> "$GITHUB_OUTPUT"
- name: Create pull request
if: steps.git-check.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore(data): refresh product versions'
title: 'chore(data): refresh product versions'
body: |
## Summary
Automated refresh of product versions from the registry sources declared in each manifest.
## Validation
- Manifest schemas
- Generated manifest modules
- Internationalization structure
- Data health
The workflow preserves existing values when any configured source cannot be verified.
branch: auto-update-product-versions
delete-branch: true
labels: |
automated