File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 39
39
name : Update "Tested up to" value for ${{ matrix.plugin }}
40
40
needs : prepare-matrix
41
41
runs-on : ubuntu-latest
42
+ env :
43
+ PLUGIN_SLUG : ${{ matrix.plugin }}
42
44
strategy :
43
45
matrix :
44
46
plugin : ${{ fromJSON(needs.prepare-matrix.outputs.matrix) }}
47
49
uses : actions/checkout@v4
48
50
49
51
- name : Download WordPress.org readme
50
- env :
51
- PLUGIN_SLUG : ${{ matrix.plugin }}
52
52
run : |
53
53
# Download the current readme.txt from WordPress.org
54
54
curl -sSL --retry 3 --retry-delay 5 --retry-all-errors --fail -o /tmp/wp-org-readme.txt "https://plugins.svn.wordpress.org/$PLUGIN_SLUG/trunk/readme.txt"
58
58
fi
59
59
60
60
- name : Extract "Tested up to" version from repository
61
- env :
62
- PLUGIN_SLUG : ${{ matrix.plugin }}
63
61
id : extract-tested-up-to
64
62
run : |
65
63
LOCAL_TESTED_UP_TO=$(grep -E "^Tested up to:" "./plugins/$PLUGIN_SLUG/readme.txt" | awk -F ': +' '{print $2}')
72
70
73
71
- name : Prepare and update readme.txt
74
72
env :
75
- PLUGIN_SLUG : ${{ matrix.plugin }}
76
73
LOCAL_TESTED_UP_TO : ${{ steps.extract-tested-up-to.outputs.version }}
77
74
run : |
78
75
# Replace local readme.txt with WordPress.org version, updating only the "Tested up to" line.
You can’t perform that action at this time.
0 commit comments