Skip to content

Commit 1588378

Browse files
authored
fix: update wiki-sync workflow to use PR instead of direct push (#26)
Repository rules require all changes to go through pull requests and have verified signatures. Modified wiki-sync workflow to: - Use peter-evans/create-pull-request action - Create automated PR for wiki changes - Respect branch protection rules - Add proper labels (documentation, automated) This fixes the 'push declined due to repository rule violations' error.
1 parent c9e55f7 commit 1588378

1 file changed

Lines changed: 34 additions & 14 deletions

File tree

.github/workflows/wiki-sync.yml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,48 @@ jobs:
9898
echo "No wiki changes detected"
9999
fi
100100
101-
- name: Commit wiki changes
101+
- name: Create Pull Request for wiki changes
102102
if: steps.check_changes.outputs.changes == 'true'
103-
run: |
104-
git add wiki/
105-
git commit -m "docs: auto-sync documentation to wiki
103+
uses: peter-evans/create-pull-request@v6
104+
with:
105+
token: ${{ secrets.GITHUB_TOKEN }}
106+
commit-message: |
107+
docs: auto-sync documentation to wiki
108+
109+
Automated sync from main documentation to wiki directory.
110+
111+
This ensures wiki stays in sync with the main docs/ directory.
112+
113+
Files synced:
114+
- docs/README.md → wiki/Documentation-Index.md
115+
- docs/ARCHITECTURE.md → wiki/Architecture-Overview.md
116+
- docs/SERVICE_CATALOG.md → wiki/Service-Catalog.md
117+
- And other core documentation files
118+
branch: wiki-sync-auto
119+
delete-branch: true
120+
title: 'docs: auto-sync documentation to wiki'
121+
body: |
122+
## Automated Wiki Sync
123+
124+
This PR automatically syncs changes from the main documentation to the wiki directory.
106125
107-
Automated sync from main documentation to wiki directory.
126+
### Changes
127+
- Synced updated documentation files from `docs/` to `wiki/`
128+
- Ensures wiki stays consistent with main documentation
108129
109-
This ensures wiki stays in sync with the main docs/ directory.
130+
### Files Updated
131+
- Documentation Index
132+
- Architecture Overview
133+
- Service Catalog
134+
- Other core documentation files
110135
111-
Files synced:
112-
- docs/README.md → wiki/Documentation-Index.md
113-
- docs/ARCHITECTURE.md → wiki/Architecture-Overview.md
114-
- docs/SERVICE_CATALOG.md → wiki/Service-Catalog.md
115-
- And other core documentation files
116-
"
117-
git push
136+
**Note**: This is an automated PR created by the Wiki Sync workflow.
137+
labels: documentation, automated
118138

119139
- name: Summary
120140
if: steps.check_changes.outputs.changes == 'true'
121141
run: |
122-
echo "✅ Wiki successfully synced with main documentation"
142+
echo "✅ Wiki sync PR created successfully"
123143
124144
- name: No changes summary
125145
if: steps.check_changes.outputs.changes == 'false'

0 commit comments

Comments
 (0)