Skip to content

Commit ae1c789

Browse files
authored
update readme (#4)
1 parent 1ca7f75 commit ae1c789

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
# action-validate-plugin-version
1+
# Validate WordPress Plugin "Tested Up To" Version
2+
[![GitHub License](https://img.shields.io/github/license/jazzsequence/action-validate-plugin-version)](https://github.com/jazzsequence/action-validate-plugin-version/blob/main/LICENSE)
3+
[![Validate Plugin Version Test](https://github.com/jazzsequence/action-validate-plugin-version/actions/workflows/test.yml/badge.svg)](https://github.com/jazzsequence/action-validate-plugin-version/actions/workflows/test.yml)
4+
25
A GitHub action that validates the last tested plugin version against the current version of WordPress.
6+
7+
## Usage
8+
9+
```yaml
10+
name: Validate Plugin Version
11+
on:
12+
push:
13+
branches:
14+
- main
15+
jobs:
16+
validate:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Validate Plugin Version
21+
uses: jazzsequence/action-validate-plugin-version@v0
22+
with:
23+
plugin-path: 'path/to/plugin-slug/'
24+
```
25+
26+
### Inputs
27+
28+
#### `plugin-path`
29+
The path to the plugin directory to validate. If not specified, the action will use the project root.
30+
31+
#### `dry-run`
32+
Only used in self-testing. If passed, this will not actually create a PR against the repository.
33+
34+
#### `gh-token`
35+
The GitHub token to use for creating a PR. If not specified, the action will use the default GitHub token.

0 commit comments

Comments
 (0)