Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/readme-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Sync readme.txt to WordPress.org trunk

# WordPress.org reads fields like "Tested up to" from the readme.txt in SVN
# trunk, so this workflow commits only readme.txt to trunk. That updates the
# plugin page without cutting a new release. Run it manually after changing
# readme.txt on develop.
on:
workflow_dispatch:

jobs:
sync-readme:
name: Sync readme.txt to SVN trunk
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Subversion
run: sudo apt-get update && sudo apt-get install -y subversion

- name: Commit readme.txt to trunk
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
run: |
svn checkout --depth empty https://plugins.svn.wordpress.org/clicky/trunk/ svn-trunk \
--username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive --trust-server-cert-failures=unknown-ca,cn-mismatch,expired,not-yet-valid,other
svn update svn-trunk/readme.txt \
--username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive
cp readme.txt svn-trunk/readme.txt
svn commit svn-trunk/readme.txt \
--message "Update readme.txt (Tested up to)" \
--username "$SVN_USERNAME" --password "$SVN_PASSWORD" --non-interactive
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: analytics, statistics, clicky, getclicky, affiliate
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html
Requires at least: 5.9
Tested up to: 6.1
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.1

Expand Down
Loading