-
Notifications
You must be signed in to change notification settings - Fork 687
56 lines (47 loc) · 1.58 KB
/
sync-doc.yaml
File metadata and controls
56 lines (47 loc) · 1.58 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
---
name: 'Sync Documentation'
on:
workflow_dispatch:
# Run weekly on Saturdays at 10 AM UTC (weekend schedule)
schedule:
- cron: '0 10 * * 6'
jobs:
auto-build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
APP_ENV: production
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Build preparation
env:
APP_ENV: production
AMP_DOC_TOKEN: ${{ secrets.AMP_DOC_TOKEN }}
run: |
npx gulp buildPrepare
- name: Create Pull Request if changes exist
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Automatic documentation sync [skip ci]'
title: 'Automatic documentation sync - Run ${{ github.run_number }}'
body: |
🤖 **Automatic documentation sync**
This PR contains updates generated by the weekly automated build process.
**Schedule:** Every Saturday at 10 AM UTC
**Workflow Run:** [${{ github.run_number }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
Please review the changes.
branch: auto-build-${{ github.run_number }}
delete-branch: true