Skip to content

Commit 6118cda

Browse files
authored
Update README.md
1 parent e257b4c commit 6118cda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Very simple, you provide the action with a `path` to a _file_ or _folder_, and i
3838
| `removed` | boolean | Specifies the file or folder was removed. |
3939
| `renamed` | boolean | Specifies the file or folder was renamed. |
4040
| `name` | string | Specifies the name of the file or folder. |
41+
| `previous` | string | Specifies the previous file name, or its name. |
4142

4243
## Example Case
4344
You have a workflow that only runs on a push event to a file path. But you don't want it to run if the file was `removed` _(deleted)_.
@@ -57,11 +58,11 @@ jobs:
5758
- uses: actions/checkout@v2
5859
- name: Simple Diff
5960
id: diff
60-
uses: mudlabs/simple-diff@v1.0.1
61+
uses: mudlabs/simple-diff@v1.0.2
6162
with:
6263
path: path/to/my/file.ext
6364
- run: exit 1
64-
if: steps.diff.outputs.removed
65+
if: steps.diff.outputs.removed == true
6566
6667
# Other jobs will run only if file.ext was NOT removed.
6768
```

0 commit comments

Comments
 (0)