-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 836 Bytes
/
sync-docs.yml
File metadata and controls
31 lines (26 loc) · 836 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
name: Sync Docs Manifest
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout site repo
uses: actions/checkout@v4
- name: Fetch manifest from accessibility-agents
run: |
curl -fsSL \
https://raw.githubusercontent.com/Community-Access/accessibility-agents/main/manifest.json \
-o manifest.json
- name: Commit if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add manifest.json
git diff --cached --quiet || git commit -m "Sync docs manifest from accessibility-agents [skip ci]"
git pull --rebase
git push