-
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (27 loc) · 1.24 KB
/
wp-tested-updater.yml
File metadata and controls
32 lines (27 loc) · 1.24 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
# This workflow automatically monitors WordPress version compatibility for the plugin.
# It checks if the "Tested up to" version in readme.txt matches the latest WordPress release.
# The workflow runs weekly and on pushes to main branch to ensure compatibility information
# stays current. When a newer WordPress version is available, it creates an issue or pull request
# to update the compatibility information, helping maintain plugin currency with WordPress releases.
name: WordPress Version Checker
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 * * 0' # Run once a week on Sunday at midnight
workflow_dispatch: # Allow manual triggering
permissions:
issues: write # Required for creating issues about WordPress version mismatches
contents: read # Required for reading repository content including readme.txt
pull-requests: write # Required for creating PRs to update WordPress version compatibility
jobs:
wordpress-version-checker:
name: WordPress version checker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: WordPress version checker
uses: skaut/wordpress-version-checker@v2.2.3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}