Skip to content

Commit 9f871cd

Browse files
authored
add validate plugin version action (#85)
* add validate plugin version action * use current draft branch * update checkout version * update action version * add write permissions for the github bot * use version that allows user-defined filenames * move the action from the lint-test into a standalone workflow
1 parent 930455f commit 9f871cd

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/lint-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
DB_PASSWORD: root
1717
DB_HOST: localhost
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Install NPM & Composer dependencies
2121
run: |
2222
composer install
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-latest
4040
name: WP.org Code Analysis
4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
- name: WP.org Code Analysis
4444
uses: pantheon-systems/[email protected]
4545
with:
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
name: PHP Compatibility
5050
steps:
51-
- uses: actions/checkout@v3
51+
- uses: actions/checkout@v4
5252
- run: echo "Note these tests may be incomplete for newer PHP version and miss some deprecations"
5353
shell: bash
5454
- name: PHPCompatibility
@@ -61,7 +61,7 @@ jobs:
6161
name: Validate README Spacing
6262
runs-on: ubuntu-latest
6363
steps:
64-
- uses: actions/checkout@v3
64+
- uses: actions/checkout@v4
6565
- uses: pantheon-systems/validate-readme-spacing@v1
6666
with:
67-
filepath: 'README.MD'
67+
filepath: 'README.MD'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Validate Tested Up To Version
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0'
5+
6+
permissions:
7+
pull-requests: write
8+
contents: write
9+
10+
jobs:
11+
validate-plugin-version:
12+
runs-on: ubuntu-latest
13+
name: Validate Plugin Version
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: jazzsequence/action-validate-plugin-version@v1
17+
with:
18+
filenames: 'readme.txt,README.MD'
19+
branch: 'release'

0 commit comments

Comments
 (0)