Add example in README
This commit is contained in:
23
README.md
23
README.md
@@ -3,6 +3,29 @@
|
|||||||
[](https://github.com/haya14busa/action-depup/actions?query=workflow%3ATest)
|
[](https://github.com/haya14busa/action-depup/actions?query=workflow%3ATest)
|
||||||
[](https://github.com/haya14busa/action-depup/actions?query=workflow%3Areviewdog)
|
[](https://github.com/haya14busa/action-depup/actions?query=workflow%3Areviewdog)
|
||||||
|
|
||||||
|
depup action updates version in a given file automatically.
|
||||||
|
|
||||||
|
**Supported patterns example:**
|
||||||
|
|
||||||
|
```
|
||||||
|
REVIEWDOG_VERSION=0.1.0
|
||||||
|
# v prefix is supported as well.
|
||||||
|
REVIEWDOG_VERSION=v0.1.0
|
||||||
|
```
|
||||||
|
|
||||||
|
```Dockerfile
|
||||||
|
# Dockerfile sample
|
||||||
|
ENV REVIEWDOG_VERSION=0.1.0
|
||||||
|
ENV REVIEWDOG_VERSION 0.1.0 # space is ok.
|
||||||
|
ARG REVIEWDOG_VERSION=0.1.0
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# yaml sample
|
||||||
|
yaml:
|
||||||
|
REVIEWDOG_VERSION: 0.1.0
|
||||||
|
```
|
||||||
|
|
||||||
## Inputs
|
## Inputs
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user