Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ typings/
.tern-port

# Build, Config, and Compile files
.idea/
.vscode/
config/
build/
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ I call it trigger because of what this allows you to do. Firebase has extensive
* `path` - **Required** Path to the field you want to modify. If you are using firestore, this is the collection path.
* `doc` - **Required for Firestore** Document you want to modify. Uses set, so it will write/overwrite the whole file.
* `value` - **Optional** Value you would like to set. Defaults to `Date.now()` timestamp. If you are using Firestore this MUST be a JSON Object.
* `merge` - **Optional for Firestore** Choose whether to overwrite or merge the [Firestore set operation](https://firebase.google.com/docs/firestore/manage-data/add-data#set_a_document). Defaults to `false` and will overwrite document data.

## Usage

Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ inputs:
value:
description: Value to be set
required: false
merge:
description: Overwrite or merge firestore set operation
default: 'false'
required: false
branding:
icon: 'activity'
color: 'gray-dark'
Expand Down
Loading