Skip to content

Commit ef827bc

Browse files
authored
Add doc updater PR creator (#1228)
1 parent cda1989 commit ef827bc

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/doc-updater.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Documentation URL Updater
2+
3+
on:
4+
schedule:
5+
# Run daily at 9:00 AM UTC
6+
- cron: '0 9 * * *'
7+
workflow_dispatch: # Allow manual trigger
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
update-docs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Fix outdated documentation URLs
21+
uses: sebrandon1/ocp-doc-checker@v1
22+
with:
23+
fix: true
24+
25+
- name: Create Pull Request
26+
uses: peter-evans/create-pull-request@v7
27+
with:
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
commit-message: 'docs: Update outdated OpenShift documentation URLs'
30+
committer: GitHub Actions Bot <[email protected]>
31+
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
32+
branch: update-ocp-doc-urls
33+
delete-branch: true
34+
title: 'Update outdated OpenShift documentation URLs'
35+
body: |
36+
## Automated Documentation URL Update
37+
38+
This PR updates outdated OpenShift documentation URLs to their latest versions.
39+
40+
### Changes
41+
- Scanned all markdown files in the repository
42+
- Updated URLs pointing to outdated OpenShift documentation
43+
- Ensured links point to the latest available versions
44+
45+
### How to Review
46+
- Verify that the updated URLs are correct and accessible
47+
- Check that the content at the new URLs is relevant
48+
- Ensure no unintended changes were made
49+
50+
---
51+
*This PR was automatically generated by the ocp-doc-checker action.*
52+
labels: |
53+
documentation
54+
automated
55+
draft: false
56+

0 commit comments

Comments
 (0)