Skip to content

Commit 94731dc

Browse files
committed
Move PLUGIN_SLUG environment variable to job level
Signed-off-by: Shyamsundar Gadde <[email protected]>
1 parent 1044634 commit 94731dc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/bump-wordpress-tested-up-to.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
name: Update "Tested up to" value for ${{ matrix.plugin }}
4040
needs: prepare-matrix
4141
runs-on: ubuntu-latest
42+
env:
43+
PLUGIN_SLUG: ${{ matrix.plugin }}
4244
strategy:
4345
matrix:
4446
plugin: ${{ fromJSON(needs.prepare-matrix.outputs.matrix) }}
@@ -47,8 +49,6 @@ jobs:
4749
uses: actions/checkout@v4
4850

4951
- name: Download WordPress.org readme
50-
env:
51-
PLUGIN_SLUG: ${{ matrix.plugin }}
5252
run: |
5353
# Download the current readme.txt from WordPress.org
5454
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,8 +58,6 @@ jobs:
5858
fi
5959
6060
- name: Extract "Tested up to" version from repository
61-
env:
62-
PLUGIN_SLUG: ${{ matrix.plugin }}
6361
id: extract-tested-up-to
6462
run: |
6563
LOCAL_TESTED_UP_TO=$(grep -E "^Tested up to:" "./plugins/$PLUGIN_SLUG/readme.txt" | awk -F ': +' '{print $2}')
@@ -72,7 +70,6 @@ jobs:
7270
7371
- name: Prepare and update readme.txt
7472
env:
75-
PLUGIN_SLUG: ${{ matrix.plugin }}
7673
LOCAL_TESTED_UP_TO: ${{ steps.extract-tested-up-to.outputs.version }}
7774
run: |
7875
# Replace local readme.txt with WordPress.org version, updating only the "Tested up to" line.

0 commit comments

Comments
 (0)